Project

General

Profile

Actions

action #65459

closed

coordination #36712: [saga] Use YaST specific framework for GUI testing

coordination #50672: [funtional][y][epic] Use libyui-rest-api for YaST modules testing

[functional][y] Content-Encoding header is used incorrectly

Added by oorlov about 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
2020-04-08
Due date:
2020-05-05
% Done:

0%

Estimated time:

Description

There is content_encoding parameter in YHttpWidgetsActionHandler::process_request() method. And it is set to 'application/json'. That is wrong, because The Content-Encoding entity header is used to compress the media-type.. So, it should be gzip or deflate if we need it at all.

Seems like we wanted to send 'Content-Type:application/json' header to notify client, that the response body is JSON.

Some clients do not show the response due to this issue, e.g. libcurl:
Unrecognized content encoding type. libcurl understands deflate, gzip content encodings.

Task

  1. Investigate if we need the Content-Encoding, and in case we need it, change to correct value (e.g. gzip, deflate);
  2. Send 'Content-Type:application/json' header in case we need it.
Actions #1

Updated by riafarov about 4 years ago

  • Assignee set to riafarov
Actions #2

Updated by riafarov almost 4 years ago

  • Status changed from New to Resolved

This is done now.

Actions

Also available in: Atom PDF