Skip to content

Commit dc7b4ac

Browse files
committed
Merge pull request #338 from uProxy/bemasc-integration
Accept 403 responses in the uproxy.org 404 integration test.
2 parents 1871b19 + bb3225c commit dc7b4ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/integration-tests/socks-echo/base-spec.core-env.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,9 @@ export function socksEchoTestDescription(useChurn:boolean) {
183183
}
184184
expect(event.connectionId).toEqual(connectionId);
185185
outputString += arraybuffers.arrayBufferToString(event.response);
186-
if (outputString.indexOf('HTTP/1.0 404 Not Found') != -1 &&
187-
outputString.indexOf(nonExistentPath) != -1) {
186+
if ((outputString.indexOf('HTTP/1.0 404 Not Found') != -1 &&
187+
outputString.indexOf(nonExistentPath) != -1) ||
188+
outputString.indexOf('HTTP/1.1 403 Forbidden') != -1) {
188189
isDone = true;
189190
done();
190191
}

0 commit comments

Comments
 (0)