Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db4c76c84086ea4d2df79488ed9fcf01e3b97b5b76f96c221d1ab4a923cee5dc
Ticket: 0063cbcada41024be2d778dc719a64fe2144e0aa
http: wrong parameter "-headers A" not detected and sent anyway
User & Date: sebres on 2020-09-29 18:34:49
Changes

  1. closedate changed to: "2459122.27417895"
  2. closer changed to: "sebres"
  3. icomment:
    Although this check is nice for negative case, it is a bit questionable how it is implemented currently, at least in positive (good) case if the headers value is initially a dict.
    
    Because then this dict object would shimmer twice:
    
        - once by <code>[string is $type($flag) -strict $value]</code> (or even by <code>[llength $value]</code>) to a list;<br>
        - and hereafter by <code>dict for {key value} $state(-headers)</code> back to the dict.
    
    For requests with large headers as dictionary it could be unwanted.
    
    Since 8.7 it is enough to define type of headers as "dict" (without special check with llength).
    For 8.6 (missing <code>[string is dict ...]</code>) it could be implemented differently (e. g. without check of type, with some dict command, like <code>[dict size]</code>).
    
  4. login: "sebres"
  5. mimetype: "text/x-fossil-wiki"