Skip to content

Commit

Permalink
Merge pull request #799 from amayers/xcode12
Browse files Browse the repository at this point in the history
Fix compile error on Xcode 12
  • Loading branch information
daltoniam authored Jul 19, 2020
2 parents 024a277 + 263b941 commit 4820831
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
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

0 comments on commit 4820831

Please sign in to comment.