Skip to content

Commit

Permalink
Add missing property redirected to VisitResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Olivares committed Sep 19, 2024
1 parent f4db7fb commit 0c6aa2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Turbo/Visit/VisitResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import Foundation
public struct VisitResponse: Codable {
public let statusCode: Int
public let responseHTML: String?
public let redirected: Bool

public init(statusCode: Int, responseHTML: String? = nil) {
public init(statusCode: Int, responseHTML: String? = nil, redirected: Bool = false) {
self.statusCode = statusCode
self.responseHTML = responseHTML
self.redirected = redirected
}

public var isSuccessful: Bool {
Expand Down

0 comments on commit 0c6aa2c

Please sign in to comment.