Boaz Shuster
9d2b3f6463
Return error on client redirect
...
From Go 1.8 HTTP client redirect behaviour is changed:
When status code is 301, 307 or 308, the client
automatically converts it to a new HTTP request.
This behaviour change manifests in the client in that
before the 301 was not followed and the client did not generate
an error, but now results in an error message:
"Error response from daemon: page not found."
To fix that a new redirect policy is forced by setting
HTTP Client's CheckRedirect.
That policy is to return an error for any 301, 307 or 308
in the response's status code to a non-GET request.
The error message specifies that the daemon could not
process the request and it is probably due to bad
arguments that were provided by the user.
Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com >
Upstream-commit: eb36d6021618f788012c166a533f1b321cda9695
Component: engine
2017-05-11 15:39:41 +03:00
..
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-28 07:56:05 -04:00
2016-10-28 07:56:05 -04:00
2017-02-02 00:42:29 +02:00
2017-02-04 00:41:35 +08:00
2016-09-19 11:19:55 -07:00
2017-05-11 15:39:41 +03:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2017-05-11 15:39:41 +03:00
2016-10-19 11:39:00 -04:00
2016-11-18 10:21:04 +08:00
2017-02-07 11:08:37 -08:00
2016-12-02 03:32:04 +08:00
2017-04-12 10:33:19 +00:00
2017-02-17 00:32:48 +08:00
2017-01-15 01:59:57 +01:00
2017-01-03 09:35:40 -05:00
2017-01-03 09:35:40 -05:00
2016-10-31 11:16:02 -04:00
2016-11-08 04:55:27 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-18 10:21:04 +08:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-19 10:34:31 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-10-28 07:56:05 -04:00
2016-09-20 16:43:56 +02:00
2016-11-09 14:46:53 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-01-03 11:47:47 -05:00
2017-01-03 11:47:47 -05:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:16:02 -04:00
2016-10-31 11:16:02 -04:00
2016-10-31 11:19:53 -04:00
2016-10-31 11:19:53 -04:00
2017-05-03 12:37:28 +08:00
2016-09-29 07:42:53 -07:00
2017-02-03 16:59:20 -08:00
2016-09-22 14:42:06 -04:00
2016-12-16 10:11:53 -05:00
2016-10-31 17:36:49 -04:00
2017-01-10 06:40:06 +02:00
2017-04-10 16:21:43 -07:00
2016-09-19 11:19:55 -07:00
2017-02-07 11:08:37 -08:00
2017-01-03 11:47:44 -05:00
2017-01-03 11:47:44 -05:00
2016-11-18 10:21:04 +08:00
2017-02-07 11:08:37 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-28 22:15:50 +01:00
2016-11-28 22:15:50 +01:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-02-07 11:08:37 -08:00
2017-01-03 11:47:47 -05:00
2017-01-03 11:47:47 -05:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-12-05 17:00:36 +02:00
2016-09-07 11:05:58 -07:00
2017-04-11 13:37:04 -07:00
2017-04-11 13:37:04 -07:00
2016-11-19 13:21:16 +01:00
2016-09-07 11:05:58 -07:00
2016-11-10 15:51:32 -08:00
2016-10-24 15:20:01 -07:00
2017-04-10 13:41:16 -07:00
2016-12-02 04:18:02 +08:00
2017-02-09 11:26:20 +08:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-03-13 17:52:08 -07:00
2017-03-13 17:52:08 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-14 12:03:21 -07:00
2016-12-02 20:08:49 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-12-20 21:05:19 +08:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-03-12 08:47:17 +02:00
2017-01-10 06:40:06 +02:00
2016-12-22 13:26:53 -08:00
2016-12-22 13:26:53 -08:00
2016-11-21 13:11:40 -08:00
2016-11-21 13:11:40 -08:00
2016-10-24 15:20:01 -07:00
2016-12-05 12:00:29 -08:00
2017-02-27 18:11:28 -08:00
2017-01-27 07:32:22 -08:00
2017-01-26 13:16:11 -08:00
2016-12-23 13:29:58 -08:00
2016-12-23 13:29:58 -08:00
2016-11-18 10:21:04 +08:00
2016-10-24 15:20:01 -07:00
2016-10-24 15:20:01 -07:00
2016-10-24 15:20:01 -07:00
2017-02-07 11:08:37 -08:00
2016-11-22 12:49:38 +00:00
2016-09-19 11:19:55 -07:00
2016-12-02 04:18:02 +08:00
2016-11-18 10:18:21 +08:00
2017-02-11 00:16:48 +08:00
2016-12-20 21:05:19 +08:00
2016-11-09 14:27:43 -05:00
2016-11-09 14:27:45 -05:00
2016-11-09 14:27:45 -05:00
2016-11-09 14:27:43 -05:00
2016-11-09 14:27:43 -05:00
2017-01-13 09:51:05 -08:00
2017-01-26 11:33:15 -05:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2017-04-10 13:41:16 -07:00
2017-04-10 13:41:16 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2016-11-10 13:46:02 -08:00
2016-11-10 13:46:02 -08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-18 09:31:31 -08:00
2017-03-03 16:33:34 -08:00
2016-11-09 16:09:00 -08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2017-02-17 00:32:48 +08:00
2016-09-19 11:19:55 -07:00
2016-12-20 22:08:07 +08:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-11-01 23:09:30 +08:00
2016-11-01 23:09:30 +08:00
2017-04-03 18:40:54 -07:00
2016-12-22 12:10:09 +01:00
2016-12-02 20:08:49 -08:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:13:41 -04:00
2016-10-31 11:13:41 -04:00
2016-09-19 11:19:55 -07:00
2016-09-07 11:05:58 -07:00
2016-10-31 11:13:41 -04:00
2016-10-31 11:13:41 -04:00
2017-02-13 10:16:57 +08:00
2016-09-19 11:19:55 -07:00
2016-11-08 04:55:27 -08:00