Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compile error on Xcode 12 #799

Merged
merged 1 commit into from
Jul 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/Framer/FoundationHTTPServerHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class FoundationHTTPServerHandler: HTTPServerHandler {
return false //not enough data, wait for more
}
if let method = CFHTTPMessageCopyRequestMethod(response)?.takeRetainedValue() {
if method != getVerb {
if (method as NSString) != getVerb {
delegate?.didReceive(event: .failure(HTTPUpgradeError.invalidData))
return true
}
Expand Down
19 changes: 19 additions & 0 deletions Starscream.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
BBB5ABE8215E2217005B48B6 /* WebSocket.swift in Sources */ = {isa = PBXBuildFile; fileRef = BBB5ABE4215E2217005B48B6 /* WebSocket.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
6B0BE7AA24A157BB0051F7A7 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 6B3E79DD19D48B7F006071F7 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 33CCF0841F5DDC030099B092;
remoteInfo = Starscream;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
335FA2021F5DF71D00F6D2EC /* Starscream Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Starscream Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
33CCF0921F5DDC030099B092 /* Starscream.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Starscream.framework; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -250,6 +260,7 @@
buildRules = (
);
dependencies = (
6B0BE7AB24A157BB0051F7A7 /* PBXTargetDependency */,
);
name = "Starscream Tests";
productName = StarscreamTests;
Expand Down Expand Up @@ -372,6 +383,14 @@
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
6B0BE7AB24A157BB0051F7A7 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 33CCF0841F5DDC030099B092 /* Starscream */;
targetProxy = 6B0BE7AA24A157BB0051F7A7 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin XCBuildConfiguration section */
335FA2001F5DF71D00F6D2EC /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down