Skip to content

Commit d31214d

Browse files
pvieitophimage
authored andcommitted
Fixed errorCode typo
The official documentation states that the error code query parameter name is `errorCode` (the dash is only shown by the [rendered documentation webpage](http://x-callback-url.com/specifications/), check the spec raw text or [the official examples](http://x-callback-url.com/examples/)).
1 parent 28664b3 commit d31214d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CallbackURLKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ let kXCUSource = "x-source"
116116
let kXCUSuccess = "x-success"
117117
// URL to open if the requested action generates an error in the target app. This URL will be open with at least the parameters “errorCode=code&errorMessage=message”. If x-error is not present, and a error occurs, it is assumed the target app will report the failure to the user and remain in the target app.
118118
let kXCUError = "x-error"
119-
let kXCUErrorCode = "error-Code"
119+
let kXCUErrorCode = "errorCode"
120120
let kXCUErrorMessage = "errorMessage"
121121
// URL to open if the requested action is cancelled by the user. In the case where the target app offer the user the option to “cancel” the requested action, without a success or error result, this the the URL that should be opened to return the user to the source app.
122122
let kXCUCancel = "x-cancel"

0 commit comments

Comments
 (0)