CS
This commit is contained in:
parent
6cbf0eb186
commit
ac660017fe
@ -115,12 +115,7 @@ class HandshakeNegotiator implements MessageInterface {
|
|||||||
public function disableVersion($versionId) {
|
public function disableVersion($versionId) {
|
||||||
unset($this->versions[$versionId]);
|
unset($this->versions[$versionId]);
|
||||||
|
|
||||||
$this->versionString = '';
|
$this->versionString = implode(',', array_keys($this->versions));
|
||||||
|
|
||||||
foreach ($this->versions as $id => $object) {
|
|
||||||
$this->versionString .= "{$id}, ";
|
|
||||||
}
|
|
||||||
$this->versionString = substr($this->versionString, 0, -2);
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -172,6 +172,6 @@ class RFC6455 implements VersionInterface {
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
public function sign($key) {
|
public function sign($key) {
|
||||||
return base64_encode(sha1($key . static::GUID, 1));
|
return base64_encode(sha1($key . static::GUID, true));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user