Skip to content

Commit c0776a4

Browse files
committed
Removed trailing slashes from SocketRocket Origin header. See facebookincubator/SocketRocket#256
1 parent a5769fe commit c0776a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Stompy/Third Party/SocketRocket/SRWebSocket.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,9 +1611,9 @@ - (NSString *)SR_origin;
16111611
}
16121612

16131613
if (self.port) {
1614-
return [NSString stringWithFormat:@"%@://%@:%@/", scheme, self.host, self.port];
1614+
return [NSString stringWithFormat:@"%@://%@:%@", scheme, self.host, self.port];
16151615
} else {
1616-
return [NSString stringWithFormat:@"%@://%@/", scheme, self.host];
1616+
return [NSString stringWithFormat:@"%@://%@", scheme, self.host];
16171617
}
16181618
}
16191619

0 commit comments

Comments
 (0)