test webserver: Whitelist some more HTTP statuses

- HTTP 301 for redirect-to
- HTTP 404 for status/404
This commit is contained in:
Florian Bruhin 2016-06-08 14:42:55 +02:00
parent e1fd9fc408
commit 8c9bd95123

View File

@ -68,6 +68,8 @@ class Request(testprocess.Line):
'/custom/redirect-later': [http.client.FOUND],
'/basic-auth/user/password':
[http.client.UNAUTHORIZED, http.client.OK],
'/redirect-to': [http.client.FOUND],
'/status/404': [http.client.NOT_FOUND],
}
sanitized = QUrl('http://localhost' + self.path).path() # Remove ?foo