[Bug 36468] New: Remaining content-type = text/plain when JSON or HTML is returned
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36468 Bug ID: 36468 Summary: Remaining content-type = text/plain when JSON or HTML is returned Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: victor@tuxayo.net QA Contact: testopia@bugs.koha-community.org Found when reviewing Bug 36418 serials/subscription-frequency.pl
print $input->header(-type => 'text/plain', -charset => 'UTF-8'); print to_json( $frequencyrecord );
--- same in serials/subscription-numberpattern.pl --- serials/create-numberpattern.pl manual json here:
print $input->header(-type => 'text/plain', -charset => 'UTF-8'); print "{\"numberpatternid\":\"$numberpatternid\"}";
--- Here it's HTML but still text/plain content-type acqui/ajax-getauthvaluedropbox.pl --- I searched with rg "text/plain" -C 10 | rg "json" -C 10 # rg is the package ripgrep in most cases (and somehow the html case came up in the noise due to the wacky grep chaining) I tried doing the same with `git grep` + grep but I got even more noise that I already had. Anyway, that's an hint to give ideas to eventually find more inconsistencies. (apply Bug 36418 is it's still not merged) -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36468 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36468 Victor Grousset/tuxayo <victor@tuxayo.net> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=36418 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org