diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-24 13:08:52 +0200 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-24 13:08:52 +0200 |
| commit | 8ea8b95984058f6469bf813746f1d7472300aa4d (patch) | |
| tree | f2e0cc13f29801887f7608bc9124a8c58ab2f737 /lib/utils/abrt_rh_support.cpp | |
| parent | 5cc439c2c24859accf8a94d8a91879ad6d967ea4 (diff) | |
| download | abrt-8ea8b95984058f6469bf813746f1d7472300aa4d.tar.gz abrt-8ea8b95984058f6469bf813746f1d7472300aa4d.tar.xz abrt-8ea8b95984058f6469bf813746f1d7472300aa4d.zip | |
fix 305 redirect problem
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/utils/abrt_rh_support.cpp')
| -rw-r--r-- | lib/utils/abrt_rh_support.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/utils/abrt_rh_support.cpp b/lib/utils/abrt_rh_support.cpp index 4a1d80f0..fd78a427 100644 --- a/lib/utils/abrt_rh_support.cpp +++ b/lib/utils/abrt_rh_support.cpp @@ -397,6 +397,8 @@ send_report_to_new_case(const char* baseURL, char *case_location = find_header_in_abrt_post_state(case_state, "Location:"); switch (case_state->http_resp_code) { + case 301: /* "301 Moved Permanently" (for example, used to move http:// to https://) */ + case 302: /* "302 Found" (just in case) */ case 305: /* "305 Use Proxy" */ if (++redirect_count < 10 && case_location) { |
