This file is indexed.

/usr/share/doc/python-webob-doc/changes.html is in python-webob-doc 1:1.6.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>WebOb Change History &#8212; WebOb 1.6.2 documentation</title>
    
    <link rel="stylesheet" href="_static/alabaster.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '1.6.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="WebOb 1.6.2 documentation" href="index.html" />
    <link rel="prev" title="What’s New in WebOb 1.6" href="whatsnew-1.6.html" />
   
  <link rel="stylesheet" href="_static/custom.css" type="text/css" />
  
  <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />

  </head>
  <body role="document">
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="webob-change-history">
<span id="changelog"></span><h1>WebOb Change History<a class="headerlink" href="#webob-change-history" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2>1.6.2 (2016-10-14)<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="section" id="bugfix">
<h3>Bugfix<a class="headerlink" href="#bugfix" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>WebOb&#8217;s exceptions will lazily read underlying variables when inserted into
templates to avoid expensive computations/crashes when inserting into the
template. This had a bad performance regression on Py27 because of the way
the lazified class was created and returned. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/284">https://github.com/Pylons/webob/pull/284</a></li>
</ul>
</div>
</div>
<div class="section" id="id2">
<h2>1.6.1 (2016-05-20)<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<div class="section" id="id3">
<h3>Bugfix<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Response.from_file now parses the status line correctly when the status line
contains an HTTP with version, as well as a status text that contains
multiple white spaces (e.g 404 Not Found). See
<a class="reference external" href="https://github.com/Pylons/webob/issues/250">https://github.com/Pylons/webob/issues/250</a></li>
</ul>
</div>
</div>
<div class="section" id="id4">
<h2>1.6.0 (2016-03-15)<a class="headerlink" href="#id4" title="Permalink to this headline"></a></h2>
<div class="section" id="compatibility">
<h3>Compatibility<a class="headerlink" href="#compatibility" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Python 3.2 is no longer supported by WebOb</li>
</ul>
</div>
<div class="section" id="id5">
<h3>Bugfix<a class="headerlink" href="#id5" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Request.decode attempted to read from the an already consumed stream, it has
now been redirected to another stream to read from. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/183">https://github.com/Pylons/webob/pull/183</a></li>
<li>The application/json media type does not allow for a charset as discovery of
the encoding is done at the JSON layer. Upon initialization of a Response
WebOb will no longer add a charset if the content-type is set to JSON. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/197">https://github.com/Pylons/webob/pull/197</a> and
<a class="reference external" href="https://github.com/Pylons/pyramid/issues/1611">https://github.com/Pylons/pyramid/issues/1611</a></li>
</ul>
</div>
<div class="section" id="features">
<h3>Features<a class="headerlink" href="#features" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Lazily HTML escapes environment keys in HTTP Exceptions so that those keys in
the environ that are not used in the output of the page don&#8217;t raise an
exception due to inability to be properly escaped. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/139">https://github.com/Pylons/webob/pull/139</a></li>
<li>MIMEAccept now accepts comparisons against wildcards, this allows one to
match on just the media type or sub-type, without having to explicitly match
on both the media type and sub-type at the same time. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/185">https://github.com/Pylons/webob/pull/185</a></li>
<li>Add the ability to return a JSON body from an exception. Using the Accept
information in the request, the exceptions will now automatically return a
JSON version of the exception instead of just HTML or text. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/230">https://github.com/Pylons/webob/pull/230</a> and
<a class="reference external" href="https://github.com/Pylons/webob/issues/209">https://github.com/Pylons/webob/issues/209</a></li>
</ul>
</div>
<div class="section" id="security">
<h3>Security<a class="headerlink" href="#security" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>exc._HTTPMove and any subclasses will now raise a ValueError if the location
field contains a line feed or carriage return. These values may lead to
possible HTTP Response Splitting. The header_getter descriptor has also been
modified to no longer accept headers with a line feed or carriage return.
See: <a class="reference external" href="https://github.com/Pylons/webob/pull/229">https://github.com/Pylons/webob/pull/229</a> and
<a class="reference external" href="https://github.com/Pylons/webob/issues/217">https://github.com/Pylons/webob/issues/217</a></li>
</ul>
</div>
</div>
<div class="section" id="id6">
<h2>1.5.1 (2015-10-30)<a class="headerlink" href="#id6" title="Permalink to this headline"></a></h2>
<div class="section" id="bug-fixes">
<h3>Bug Fixes<a class="headerlink" href="#bug-fixes" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>The exceptions HTTPNotAcceptable, HTTPUnsupportedMediaType and
HTTPNotImplemented will now correctly use the sub-classed template rather
than the default error template. See <a class="reference external" href="https://github.com/Pylons/webob/issues/221">https://github.com/Pylons/webob/issues/221</a></li>
<li>Response&#8217;s from_file now correctly deals with a status line that contains an
HTTP version identifier. HTTP/1.1 200 OK is now correctly parsed, whereas
before this would raise an error upon setting the Response.status in
from_file. See <a class="reference external" href="https://github.com/Pylons/webob/issues/121">https://github.com/Pylons/webob/issues/121</a></li>
</ul>
</div>
</div>
<div class="section" id="id7">
<h2>1.5.0 (2015-10-11)<a class="headerlink" href="#id7" title="Permalink to this headline"></a></h2>
<div class="section" id="id8">
<h3>Bug Fixes<a class="headerlink" href="#id8" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>The cookie API functions will now make sure that <cite>max_age</cite> is an integer or
an string that can convert to an integer. Previously passing in
max_age=&#8217;test&#8217; would have silently done the wrong thing.</li>
</ul>
</div>
<div class="section" id="id9">
<h3>Features<a class="headerlink" href="#id9" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Unbreak req.POST when the request method is PATCH. Instead of returning
something cmpletely unrelated we return NoVar. See:
<a class="reference external" href="https://github.com/Pylons/webob/pull/215">https://github.com/Pylons/webob/pull/215</a></li>
<li>HTTP Status Code 308 is now supported as a Permanent Redirect. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/207">https://github.com/Pylons/webob/pull/207</a></li>
</ul>
</div>
<div class="section" id="backwards-incompatibilities">
<h3>Backwards Incompatibilities<a class="headerlink" href="#backwards-incompatibilities" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">Response.set_cookie</span></code> renamed the only required parameter from &#8220;key&#8221; to
&#8220;name&#8221;. The code will now still accept &#8220;key&#8221; as a keyword argument, and will
issue a DeprecationWarning until WebOb 1.7.</li>
<li>The <code class="docutils literal"><span class="pre">status</span></code> attribute of a <code class="docutils literal"><span class="pre">Response</span></code> object no longer takes a string
like <code class="docutils literal"><span class="pre">None</span> <span class="pre">None</span></code> and allows that to be set as the status. It now has to at
least match the pattern of <code class="docutils literal"><span class="pre">&lt;integer</span> <span class="pre">status</span> <span class="pre">code&gt;</span> <span class="pre">&lt;explenation</span> <span class="pre">of</span> <span class="pre">status</span>
<span class="pre">code&gt;</span></code>. Invalid status strings will now raise a <code class="docutils literal"><span class="pre">ValueError</span></code>.</li>
</ul>
</div>
</div>
<div class="section" id="a0-2015-07-25">
<h2>1.5.0a0 (2015-07-25)<a class="headerlink" href="#a0-2015-07-25" title="Permalink to this headline"></a></h2>
<div class="section" id="id10">
<h3>Backwards Incompatibilities<a class="headerlink" href="#id10" title="Permalink to this headline"></a></h3>
<ul>
<li><p class="first"><code class="docutils literal"><span class="pre">Morsel</span></code> will no longer accept a cookie value that does not meet RFC6265&#8217;s
cookie-octet specification. Upon calling <code class="docutils literal"><span class="pre">Morsel.serialize</span></code> a warning will
be issued, in the future this will raise a <code class="docutils literal"><span class="pre">ValueError</span></code>, please update your
cookie handling code. See <a class="reference external" href="https://github.com/Pylons/webob/pull/172">https://github.com/Pylons/webob/pull/172</a></p>
<p>The cookie-octet specification in RFC6265 states the following characters are
valid in a cookie value:</p>
<table border="1" class="docutils">
<colgroup>
<col width="28%" />
<col width="72%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">Hex Range</th>
<th class="head">Actual Characters</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><code class="docutils literal"><span class="pre">[0x21</span>&#160;&#160;&#160;&#160; <span class="pre">]</span></code></td>
<td><code class="docutils literal"><span class="pre">!</span></code></td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">[0x25-0x2B]</span></code></td>
<td><code class="docutils literal"><span class="pre">#$%&amp;'()*+</span></code></td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">[0x2D-0x3A]</span></code></td>
<td><code class="docutils literal"><span class="pre">-./0123456789:</span></code></td>
</tr>
<tr class="row-odd"><td><code class="docutils literal"><span class="pre">[0x3C-0x5B]</span></code></td>
<td><code class="docutils literal"><span class="pre">&lt;=&gt;?&#64;ABCDEFGHIJKLMNOPQRSTUVWXYZ[</span></code></td>
</tr>
<tr class="row-even"><td><code class="docutils literal"><span class="pre">[0x5D-0x7E]</span></code></td>
<td><code class="docutils literal"><span class="pre">]^_`abcdefghijklmnopqrstuvwxyz{|}~</span></code></td>
</tr>
</tbody>
</table>
<p>RFC6265 suggests using base 64 to serialize data before storing data in a
cookie.</p>
<p>Cookies that meet the RFC6265 standard will no longer be quoted, as this is
unnecessary. This is a no-op as far as browsers and cookie storage is
concerned.</p>
</li>
<li><p class="first"><code class="docutils literal"><span class="pre">Response.set_cookie</span></code> now uses the internal <code class="docutils literal"><span class="pre">make_cookie</span></code> API, which will
issue warnings if cookies are set with invalid bytes. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/172">https://github.com/Pylons/webob/pull/172</a></p>
</li>
</ul>
</div>
<div class="section" id="id11">
<h3>Features<a class="headerlink" href="#id11" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Add support for some new caching headers, stale-while-revalidate and
stale-if-error that can be used by reverse proxies to cache stale responses
temporarily if the backend disappears. From RFC5861. See
<a class="reference external" href="https://github.com/Pylons/webob/pull/189">https://github.com/Pylons/webob/pull/189</a></li>
</ul>
</div>
<div class="section" id="id12">
<h3>Bug Fixes<a class="headerlink" href="#id12" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Response.status now uses duck-typing for integers, and has also learned to
raise a ValueError if the status isn&#8217;t an integer followed by a space, and
then the reason. See <a class="reference external" href="https://github.com/Pylons/webob/pull/191">https://github.com/Pylons/webob/pull/191</a></li>
<li>Fixed a bug in <code class="docutils literal"><span class="pre">webob.multidict.GetDict</span></code> which resulted in the
QUERY_STRING not being updated when changes were made to query
params using <code class="docutils literal"><span class="pre">Request.GET.extend()</span></code>.</li>
<li>Read the body of a request if we think it might have a body. This fixes PATCH
to support bodies. See <a class="reference external" href="https://github.com/Pylons/webob/pull/184">https://github.com/Pylons/webob/pull/184</a></li>
<li>Response.from_file returns HTTP headers as latin1 rather than UTF-8, this
fixes the usage on Google AppEngine. See
<a class="reference external" href="https://github.com/Pylons/webob/issues/99">https://github.com/Pylons/webob/issues/99</a> and
<a class="reference external" href="https://github.com/Pylons/webob/pull/150">https://github.com/Pylons/webob/pull/150</a></li>
<li>Fix a bug in parsing the auth parameters that contained bad white space. This
makes the parsing fall in line with what&#8217;s required in RFC7235. See
<a class="reference external" href="https://github.com/Pylons/webob/issues/158">https://github.com/Pylons/webob/issues/158</a></li>
<li>Use &#8216;rn&#8217; line endings in <code class="docutils literal"><span class="pre">Response.__str__</span></code>. See:
<a class="reference external" href="https://github.com/Pylons/webob/pull/146">https://github.com/Pylons/webob/pull/146</a></li>
</ul>
</div>
<div class="section" id="documentation-changes">
<h3>Documentation Changes<a class="headerlink" href="#documentation-changes" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">response.set_cookie</span></code> now has proper documentation for <code class="docutils literal"><span class="pre">max_age</span></code> and
<code class="docutils literal"><span class="pre">expires</span></code>. The code has also been refactored to use <code class="docutils literal"><span class="pre">cookies.make_cookie</span></code>
instead of duplicating the code. This fixes
<a class="reference external" href="https://github.com/Pylons/webob/issues/166">https://github.com/Pylons/webob/issues/166</a> and
<a class="reference external" href="https://github.com/Pylons/webob/issues/171">https://github.com/Pylons/webob/issues/171</a></li>
<li>Documentation didn&#8217;t match the actual code for the wsgify function signature.
See <a class="reference external" href="https://github.com/Pylons/webob/pull/167">https://github.com/Pylons/webob/pull/167</a></li>
<li>Remove the WebDAV only from certain HTTP Exceptions, these exceptions may
also be used by REST services for example.</li>
</ul>
</div>
</div>
<div class="section" id="id13">
<h2>1.4 (2014-05-14)<a class="headerlink" href="#id13" title="Permalink to this headline"></a></h2>
<div class="section" id="id14">
<h3>Features<a class="headerlink" href="#id14" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Remove <code class="docutils literal"><span class="pre">webob.__version__</span></code>, the version number had not been kept in sync
with the official pkg version.  To obtain the WebOb version number, use
<code class="docutils literal"><span class="pre">pkg_resources.get_distribution('webob').version</span></code> instead.</li>
</ul>
</div>
<div class="section" id="id15">
<h3>Bug Fixes<a class="headerlink" href="#id15" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Fix a bug in <code class="docutils literal"><span class="pre">EmptyResponse</span></code> that prevents it from setting self.close as
appropriate due to testing truthiness of object rather than if it is
something other than <code class="docutils literal"><span class="pre">None</span></code>.</li>
<li>Fix a bug in <code class="docutils literal"><span class="pre">SignedSerializer</span></code> preventing secrets from containing
higher-order characters. See <a class="reference external" href="https://github.com/Pylons/webob/issues/136">https://github.com/Pylons/webob/issues/136</a></li>
<li>Use the <code class="docutils literal"><span class="pre">hmac.compare_digest</span></code> method when available for constant-time
comparisons.</li>
</ul>
</div>
</div>
<div class="section" id="id16">
<h2>1.3.1 (2013-12-13)<a class="headerlink" href="#id16" title="Permalink to this headline"></a></h2>
<div class="section" id="id17">
<h3>Bug Fixes<a class="headerlink" href="#id17" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Fix a bug in <code class="docutils literal"><span class="pre">SignedCookieProfile</span></code> whereby we didn&#8217;t keep the original
serializer around, this would cause us to have <code class="docutils literal"><span class="pre">SignedSerializer</span></code> be added on
top of a <code class="docutils literal"><span class="pre">SignedSerializer</span></code> which would cause it to be run twice when
attempting to verify a cookie.  See <a class="reference external" href="https://github.com/Pylons/webob/pull/127">https://github.com/Pylons/webob/pull/127</a></li>
</ul>
</div>
<div class="section" id="id18">
<h3>Backwards Incompatibilities<a class="headerlink" href="#id18" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>When <code class="docutils literal"><span class="pre">CookieProfile.get_value</span></code> and <code class="docutils literal"><span class="pre">SignedCookieProfile.get_value</span></code> fails
to deserialize a badly encoded value, we now return <code class="docutils literal"><span class="pre">None</span></code> as if the cookie
was never set in the first place instead of allowing a <code class="docutils literal"><span class="pre">ValueError</span></code> to be
raised to the calling code.  See <a class="reference external" href="https://github.com/Pylons/webob/pull/126">https://github.com/Pylons/webob/pull/126</a></li>
</ul>
</div>
</div>
<div class="section" id="id19">
<h2>1.3 (2013-12-10)<a class="headerlink" href="#id19" title="Permalink to this headline"></a></h2>
<div class="section" id="id20">
<h3>Features<a class="headerlink" href="#id20" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Added a read-only <code class="docutils literal"><span class="pre">domain</span></code> property to <code class="docutils literal"><span class="pre">BaseRequest</span></code>.  This property
returns the domain portion of the host value.  For example, if the
environment contains an <code class="docutils literal"><span class="pre">HTTP_HOST</span></code> value of <code class="docutils literal"><span class="pre">foo.example.com:8000</span></code>,
<code class="docutils literal"><span class="pre">request.domain</span></code> will return <code class="docutils literal"><span class="pre">foo.example.com</span></code>.</li>
<li>Added five new APIs: <code class="docutils literal"><span class="pre">webob.cookies.CookieProfile</span></code>,
<code class="docutils literal"><span class="pre">webob.cookies.SignedCookieProfile</span></code>, <code class="docutils literal"><span class="pre">webob.cookies.JSONSerializer</span></code> and
<code class="docutils literal"><span class="pre">webob.cookies.SignedSerializer</span></code>, and <code class="docutils literal"><span class="pre">webob.cookies.make_cookie</span></code>.  These
APIs are convenience APIs for generating and parsing cookie headers as well
as dealing with signing cookies.</li>
<li>Cookies generated via webob.cookies quoted characters in cookie values that
did not need to be quoted per RFC 6265.  The following characters are no
longer quoted in cookie values: <code class="docutils literal"><span class="pre">~/=&lt;&gt;()[]{}?&#64;</span></code> .  The full set of
non-letter-or-digit unquoted cookie value characters is now
<code class="docutils literal"><span class="pre">!#$%&amp;'*+-.^_`|~/:</span> <span class="pre">=&lt;&gt;()[]{}?&#64;</span></code>.  See
<a class="reference external" href="http://tools.ietf.org/html/rfc6265#section-4.1.1">http://tools.ietf.org/html/rfc6265#section-4.1.1</a> for more information.</li>
<li>Cookie names are now restricted to the set of characters expected by RFC
6265.  Previously they could contain unsupported characters such as <code class="docutils literal"><span class="pre">/</span></code>.</li>
<li>Older versions of Webob escaped the doublequote to <code class="docutils literal"><span class="pre">\&quot;</span></code> and the backslash
to <code class="docutils literal"><span class="pre">\\</span></code> when quoting cookie values.  Now, instead, cookie serialization
generates <code class="docutils literal"><span class="pre">\042</span></code> for the doublequote and <code class="docutils literal"><span class="pre">\134</span></code> for the backslash. This
is what is expected as per RFC 6265.  Note that old cookie values that do
have the older style quoting in them will still be unquoted correctly,
however.</li>
<li>Added support for draft status code 451 (&#8220;Unavailable for Legal Reasons&#8221;).
See <a class="reference external" href="http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00">http://tools.ietf.org/html/draft-tbray-http-legally-restricted-status-00</a></li>
<li>Added status codes 428, 429, 431 and 511 to <code class="docutils literal"><span class="pre">util.status_reasons</span></code> (they
were already present in a previous release as <code class="docutils literal"><span class="pre">webob.exc</span></code> exceptions).</li>
</ul>
</div>
<div class="section" id="id21">
<h3>Bug Fixes<a class="headerlink" href="#id21" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>MIMEAccept happily parsed malformed wildcard strings like &#8220;image/pn*&#8221; at
parse time, but then threw an AssertionError during matching.  See
<a class="reference external" href="https://github.com/Pylons/webob/pull/83">https://github.com/Pylons/webob/pull/83</a> .</li>
<li>Preserve document ordering of GET and POST request data when POST data passed
to Request.blank is a MultiDict.  See <a class="reference external" href="https://github.com/Pylons/webob/pull/96">https://github.com/Pylons/webob/pull/96</a></li>
<li>Allow query strings attached to PATCH requests to populate request.params.
See <a class="reference external" href="https://github.com/Pylons/webob/pull/106">https://github.com/Pylons/webob/pull/106</a></li>
<li>Added Python 3.3 trove classifier.</li>
</ul>
</div>
</div>
<div class="section" id="id22">
<h2>1.2.3<a class="headerlink" href="#id22" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Maintainership transferred to <cite>Pylons Project &lt;http://www.pylonsproject.org/&gt;</cite></li>
<li>Fix parsing of form submissions where fields have
transfer-content-encoding headers.</li>
</ul>
</div>
<div class="section" id="id23">
<h2>1.2.2<a class="headerlink" href="#id23" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix multiple calls to <code class="docutils literal"><span class="pre">cache_expires()</span></code> not fully overriding the
previously set headers.</li>
<li>Fix parsing of form submissions where fields have different encodings.</li>
</ul>
</div>
<div class="section" id="id24">
<h2>1.2.1<a class="headerlink" href="#id24" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Add index page (e.g., <code class="docutils literal"><span class="pre">index.html</span></code>) support for
<a class="reference internal" href="api/static.html#webob.static.DirectoryApp" title="webob.static.DirectoryApp"><code class="xref py py-class docutils literal"><span class="pre">webob.static.DirectoryApp</span></code></a>.</li>
<li>Detect mime-type when creating a test request with file uploads
(<code class="docutils literal"><span class="pre">Request.blank(&quot;/&quot;,</span> <span class="pre">POST=dict(file1=(&quot;foo.jpg&quot;,</span> <span class="pre">&quot;xxx&quot;)))</span></code>)</li>
<li>Relax parsing of <code class="docutils literal"><span class="pre">Accept</span></code> and <code class="docutils literal"><span class="pre">Range</span></code> headers to allow
uppercase and extra whitespace.</li>
<li>Fix docs references to some deprecated classes.</li>
</ul>
</div>
<div class="section" id="id25">
<h2>1.2<a class="headerlink" href="#id25" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix <a class="reference internal" href="api/client.html#module-webob.client" title="webob.client"><code class="xref py py-mod docutils literal"><span class="pre">webob.client</span></code></a> handling  of connection-refused on Windows.</li>
<li>Use <code class="docutils literal"><span class="pre">simplejson</span></code> in <a class="reference internal" href="api/request.html#module-webob.request" title="webob.request"><code class="xref py py-mod docutils literal"><span class="pre">webob.request</span></code></a> if present.</li>
<li>Fix <code class="docutils literal"><span class="pre">resp.retry_after</span> <span class="pre">=</span> <span class="pre">&lt;long&gt;</span></code> interpreting value as a UNIX timestamp
(should interpret as time delta in seconds).</li>
</ul>
</div>
<div class="section" id="rc1">
<h2>1.2rc1<a class="headerlink" href="#rc1" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">Add <code class="docutils literal"><span class="pre">Response.json</span></code> and <code class="docutils literal"><span class="pre">Request.json</span></code> which reads and sets the
body using a JSON encoding (previously only the readable attribute
<code class="docutils literal"><span class="pre">Request.json_body</span></code> existed).  <code class="docutils literal"><span class="pre">Request.json_body</span></code> is still
available as an alias.</p>
</li>
<li><p class="first">Rename <code class="docutils literal"><span class="pre">Response.status_int</span></code> to <code class="docutils literal"><span class="pre">Response.status_code</span></code> (the
<code class="docutils literal"><span class="pre">.status_int</span></code> name is still available and will be supported
indefinitely).</p>
</li>
<li><p class="first">Add <code class="docutils literal"><span class="pre">Request.text</span></code>, the unicode version of the request body
(similar to <code class="docutils literal"><span class="pre">Response.text</span></code>).</p>
</li>
<li><p class="first">Add <a class="reference internal" href="api/client.html#module-webob.client" title="webob.client"><code class="xref py py-mod docutils literal"><span class="pre">webob.client</span></code></a> which contains the WSGI application
<code class="docutils literal"><span class="pre">send_request_app</span></code> and <code class="docutils literal"><span class="pre">SendRequest</span></code>.  All requests sent to this
application are turned into HTTP requests.</p>
</li>
<li><p class="first">Renamed <code class="docutils literal"><span class="pre">Request.get_response(app)</span></code> to <code class="docutils literal"><span class="pre">Request.send(app)</span></code>.  The
<code class="docutils literal"><span class="pre">.get_response()</span></code> name is still available.</p>
</li>
<li><p class="first">Use <code class="docutils literal"><span class="pre">send_request_app</span></code> as the default application for
<code class="docutils literal"><span class="pre">Request.send()</span></code>, so you can do:</p>
<blockquote>
<div><p><code class="docutils literal"><span class="pre">resp</span> <span class="pre">=</span> <span class="pre">Request.blank(&quot;http://python.org&quot;).send()</span></code></p>
</div></blockquote>
</li>
<li><p class="first">Add <a class="reference internal" href="api/static.html#module-webob.static" title="webob.static"><code class="xref py py-mod docutils literal"><span class="pre">webob.static</span></code></a> which contains two new WSGI applications,
<code class="xref py py-class docutils literal"><span class="pre">FileApp</span></code> serve one static file and <code class="xref py py-class docutils literal"><span class="pre">DirectoryApp</span></code>&nbsp;to serve
the content of a directory. They should provide a reusable implementation
of <a class="reference internal" href="file-example.html"><span class="doc">WebOb File-Serving Example</span></a>.  It also comes with support for <code class="docutils literal"><span class="pre">wsgi.file_wrapper</span></code>.</p>
<p>The implementation has been imported and simplified from
<code class="xref py py-mod docutils literal"><span class="pre">PasteOb.fileapp</span></code>.</p>
</li>
<li><p class="first">Add <code class="docutils literal"><span class="pre">dev</span></code> and <code class="docutils literal"><span class="pre">docs</span></code> setup.py aliases (to install development and docs
dependencies respectively, e.g. &#8220;python setup.py dev&#8221;).</p>
</li>
</ul>
</div>
<div class="section" id="b3">
<h2>1.2b3<a class="headerlink" href="#b3" title="Permalink to this headline"></a></h2>
<ul>
<li><p class="first">Added <code class="docutils literal"><span class="pre">request.host_port</span></code> API (returns port number implied by HTTP_HOST,
falling back to SERVER_PORT).</p>
</li>
<li><p class="first">Added <code class="docutils literal"><span class="pre">request.client_addr</span></code> API (returns IP address implied by
HTTP_X_FORWARDED_FOR, falling back to REMOTE_ADDR).</p>
</li>
<li><p class="first">Fix corner-case <code class="docutils literal"><span class="pre">response.status_int</span></code> and <code class="docutils literal"><span class="pre">response.status</span></code> mutation
bug on py3 (use explicit floor division).</p>
</li>
<li><p class="first">Backwards incompatibility: Request and BaseRequest objects now return
Unicode for <code class="docutils literal"><span class="pre">request.path_info</span></code> and <code class="docutils literal"><span class="pre">request.script_name</span></code> under Python
2.  Rationale: the legacy behavior of returning the respective raw environ
values was nonsensical on Python 3.  Working with non-ascii encoded environ
variables as raw WSGI values under Python 3 makes no sense, as PEP 3333
specifies that environ variables are bytes-tunneled-as-latin-1 strings.</p>
<p>If you don&#8217;t care about Python 3, and you need strict backwards
compatibility, to get legacy behavior of returning bytes on Python 2 for
these attributes, use <code class="docutils literal"><span class="pre">webob.LegacyRequest</span></code> instead of <code class="docutils literal"><span class="pre">webob.Request</span></code>.
Although it&#8217;s possible to use <code class="docutils literal"><span class="pre">webob.LegacyRequest</span></code> under Python 3, it
makes no sense, and it should not be used there.</p>
</li>
<li><p class="first">The above backwards incompatibility fixed nonsensical behavior of
<code class="docutils literal"><span class="pre">request.host_url</span></code>, <code class="docutils literal"><span class="pre">request.application_url</span></code>, <code class="docutils literal"><span class="pre">request.path_url</span></code>,
<code class="docutils literal"><span class="pre">request.path</span></code>, <code class="docutils literal"><span class="pre">request.path_qs</span></code>, <code class="docutils literal"><span class="pre">request.url</span></code>,
<code class="docutils literal"><span class="pre">request.relative_url</span></code>, <code class="docutils literal"><span class="pre">request.path_info_peek</span></code>,
<code class="docutils literal"><span class="pre">request.path_info_pop</span></code> under Python 3.  These methods previously dealt
with raw SCRIPT_NAME and PATH_INFO values, which caused nonsensical
results.</p>
</li>
<li><p class="first">The WebOb Request object now respects an additional WSGI environment
variable: <code class="docutils literal"><span class="pre">webob.url_encoding</span></code>.  <code class="docutils literal"><span class="pre">webob.url_encoding</span></code> will be used to
decode the raw WSGI PATH_INFO and SCRIPT_NAME variables when the
<code class="docutils literal"><span class="pre">request.path_info</span></code> and <code class="docutils literal"><span class="pre">request.script_name</span></code> APIs are used.</p>
</li>
<li><p class="first">Request objects now accept an additional constructor parameter:
<code class="docutils literal"><span class="pre">url_encoding</span></code>.  <code class="docutils literal"><span class="pre">url_encoding</span></code> will be used to decode PATH_INFO and
SCRIPT_NAME from its WSGI-encoded values. If <code class="docutils literal"><span class="pre">webob.url_encoding</span></code> is not
set in the environ and <code class="docutils literal"><span class="pre">url_encoding</span></code> is not passed to the Request
constructor, the default value <code class="docutils literal"><span class="pre">utf-8</span></code> will be used to decode the
PATH_INFO and SCRIPT_NAME.</p>
<p>Note that passing <code class="docutils literal"><span class="pre">url_encoding</span></code> will cause the WSGI environment variable
<code class="docutils literal"><span class="pre">webob.url_encoding</span></code> to be set.</p>
</li>
<li><p class="first">Fix <code class="docutils literal"><span class="pre">webob.response._request_uri</span></code> internal function to generate sensible
request URI under Python 3.  This fixed a problem under Python 3 if you
were using non-absolute Location headers in responses.</p>
</li>
</ul>
</div>
<div class="section" id="b2">
<h2>1.2b2<a class="headerlink" href="#b2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix <code class="docutils literal"><span class="pre">request.cookies.get('name',</span> <span class="pre">'default')</span></code>.  Previously <code class="docutils literal"><span class="pre">default</span></code> was
ignored.</li>
</ul>
</div>
<div class="section" id="b1">
<h2>1.2b1<a class="headerlink" href="#b1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Mutating the <code class="docutils literal"><span class="pre">request.cookies</span></code> property now reflects the mutations into
the <code class="docutils literal"><span class="pre">HTTP_COOKIES</span></code> environ header.</li>
<li><code class="docutils literal"><span class="pre">Response.etag</span> <span class="pre">=</span> <span class="pre">(tag,</span> <span class="pre">False)</span></code> sets weak etag.</li>
<li><code class="docutils literal"><span class="pre">Range</span></code> only parses single range now.</li>
<li><code class="docutils literal"><span class="pre">Range.satisfiable(..)</span></code> is gone.</li>
<li><code class="docutils literal"><span class="pre">Accept.best_matches()</span></code> is gone; use <code class="docutils literal"><span class="pre">list(request.accept)</span></code> or
<code class="docutils literal"><span class="pre">request.accept.best_match(..)</span></code> instead (applies to all Accept-*
headers) or similar with <code class="docutils literal"><span class="pre">request.accept_language</span></code>.</li>
<li><code class="docutils literal"><span class="pre">Response.request</span></code> and <code class="docutils literal"><span class="pre">Response.environ</span></code> attrs are undeprecated and no
longer raise exceptions when used.  These can also be passed to the
Response constructor.  This is to support codebases that pass them to the
constructor or assign them to a response instance.  However, some behavior
differences from 1.1 exist.  In particular, synchronization is no longer
done between environ and request attribute properties of Response; you may
pass either to the constructor (or both) or assign one or the other or
both, but they wont be managed specially and will remain the same over the
lifetime of the response just as you passed them.  Default values for both
<code class="docutils literal"><span class="pre">request</span></code> and <code class="docutils literal"><span class="pre">environ</span></code> on any given response are <code class="docutils literal"><span class="pre">None</span></code> now.</li>
<li>Undeprecated <code class="docutils literal"><span class="pre">uscript_name</span></code> and <code class="docutils literal"><span class="pre">upath_info</span></code>.</li>
<li>For backwards compatibility purposes, switch <code class="docutils literal"><span class="pre">req.script_name</span></code> and
<code class="docutils literal"><span class="pre">path_info</span></code> back again to contain &#8220;raw&#8221; undecoded native strings rather
than text.  Use <code class="docutils literal"><span class="pre">uscript_name</span></code> and <code class="docutils literal"><span class="pre">upath_info</span></code> to get the text version
of SCRIPT_NAME and PATH_INFO.</li>
<li>Don&#8217;t raise an exception if <code class="docutils literal"><span class="pre">unicode_errors</span></code> or <code class="docutils literal"><span class="pre">decode_param_names</span></code> is
passed to the Request constructor.  Instead, emit a warning.  For benefit
of Pylons 1.X, which passes both.</li>
<li>Don&#8217;t raise an exception if HTTPException.exception is used; instead emit a
warning.  For benefit of Pylons 1.X, which uses it.</li>
</ul>
</div>
<div class="section" id="a2">
<h2>1.2a2<a class="headerlink" href="#a2" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">req.script_name</span></code> and <code class="docutils literal"><span class="pre">path_info</span></code> now contain text, not bytes.</li>
<li>Deprecated <code class="docutils literal"><span class="pre">uscript_name</span></code> and <code class="docutils literal"><span class="pre">upath_info</span></code>.</li>
<li><code class="docutils literal"><span class="pre">charset</span></code> argument to <code class="docutils literal"><span class="pre">Request</span></code> as well as the attribute can only
be set to UTF-8 or the value already present in the <code class="docutils literal"><span class="pre">Content-Type</span></code> header.</li>
<li><code class="docutils literal"><span class="pre">unicode_errors</span></code> attribute of <code class="docutils literal"><span class="pre">Request</span></code> and related functionality is gone.</li>
<li>To process requests that come in an encoding different from UTF-8, the request
needs to be transcoded like this: <code class="docutils literal"><span class="pre">req</span> <span class="pre">=</span> <span class="pre">req.decode('windows-1251')</span></code></li>
<li>Added support for weak ETag matching in conditional responses.</li>
<li>Most of etag-related functionality was refactored.</li>
</ul>
</div>
<div class="section" id="a1">
<h2>1.2a1<a class="headerlink" href="#a1" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Python 3.2 compatibility.</li>
<li>No longer compatible with Python 2.5 (only 2.6, 2.7, and 3.2 are supported).</li>
<li>Switched VCS from Mercurial to Git</li>
<li>Moved development to <a class="reference external" href="https://github.com/Pylons/webob">GitHub</a></li>
<li>Added full history from PyCon 2011 sprint to the repository</li>
<li>Change <code class="docutils literal"><span class="pre">LimitedLengthFile</span></code> and <code class="docutils literal"><span class="pre">FakeCGIBody</span></code> to inherit from
<code class="docutils literal"><span class="pre">io.RawIOBase</span></code> and benefit from <code class="docutils literal"><span class="pre">io.BufferedReader</span></code>.</li>
<li>Do not set <code class="docutils literal"><span class="pre">resp.request</span></code> in <code class="docutils literal"><span class="pre">req.get_response(app)</span></code></li>
<li><code class="docutils literal"><span class="pre">Response.request</span></code> and <code class="docutils literal"><span class="pre">.environ</span></code> attrs are deprecated and raise exceptions
when used.</li>
<li>Deprecated request attributes <code class="docutils literal"><span class="pre">str_GET</span></code>, <code class="docutils literal"><span class="pre">str_POST</span></code>, <code class="docutils literal"><span class="pre">str_cookies</span></code> and
<code class="docutils literal"><span class="pre">str_params</span></code> now raise exceptions when touched.</li>
<li>Remove testing dependency on WebTest.</li>
<li>Remove UnicodeMultiDict class; the result of <code class="docutils literal"><span class="pre">Request.GET</span></code> and
<code class="docutils literal"><span class="pre">Request.POST</span></code> is now just a plain <code class="docutils literal"><span class="pre">MultiDict</span></code>.</li>
<li>The <code class="docutils literal"><span class="pre">decode_param_names</span></code> Request constructor argument has been removed,
along with the <code class="docutils literal"><span class="pre">Request.decode_param_names</span></code> attribute.</li>
<li>The <code class="docutils literal"><span class="pre">Request.as_string()</span></code> method is now better known as
<code class="docutils literal"><span class="pre">Request.as_bytes()</span></code>.</li>
<li>The <code class="docutils literal"><span class="pre">Request.from_string()</span></code> method is now better known as
<code class="docutils literal"><span class="pre">Request.from_bytes()</span></code>.</li>
<li>A new method named <code class="docutils literal"><span class="pre">Request.as_text()</span></code> now exists.</li>
<li>A new method named <code class="docutils literal"><span class="pre">Request.from_text()</span></code> now exists.</li>
<li>The <code class="docutils literal"><span class="pre">webob.dec.wsgify</span></code> repr() is now much less informative, but a lot
easier to test and maintain.</li>
</ul>
</div>
<div class="section" id="id26">
<h2>1.1.1<a class="headerlink" href="#id26" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix disconnect detection being incorrect in some cases (<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/21">issue 21</a>).</li>
<li>Fix exception when calling <code class="docutils literal"><span class="pre">.accept.best_match(..)</span></code> on a header containing
<code class="docutils literal"><span class="pre">'*'</span></code> (instead of <code class="docutils literal"><span class="pre">'*/*'</span></code>).</li>
<li>Extract some of the <code class="docutils literal"><span class="pre">Accept</span></code> code into subclasses (<code class="docutils literal"><span class="pre">AcceptCharset</span></code>,
<code class="docutils literal"><span class="pre">AcceptLanguage</span></code>).</li>
<li>Improve language matching so that the app can now offer a generic
language code and it will match any of the accepted dialects
(<code class="docutils literal"><span class="pre">'en'</span> <span class="pre">in</span> <span class="pre">AcceptLanguage('en-gb')</span></code>).</li>
<li>Normalize locale names when matching
(<code class="docutils literal"><span class="pre">'en_GB'</span> <span class="pre">in</span> <span class="pre">AcceptLanguage('en-gb')</span></code>).</li>
<li>Deprecate <code class="docutils literal"><span class="pre">etag.weak_match(..)</span></code>.</li>
<li>Deprecate <code class="docutils literal"><span class="pre">Response.request</span></code> and <code class="docutils literal"><span class="pre">Response.environ</span></code> attrs.</li>
</ul>
</div>
<div class="section" id="id27">
<h2>1.1<a class="headerlink" href="#id27" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Remove deprecation warnings for <code class="docutils literal"><span class="pre">unicode_body</span></code> and <code class="docutils literal"><span class="pre">ubody</span></code>.</li>
</ul>
</div>
<div class="section" id="id28">
<h2>1.1rc1<a class="headerlink" href="#id28" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Deprecate <code class="docutils literal"><span class="pre">Response.ubody</span></code> / <code class="docutils literal"><span class="pre">.unicode_body</span></code> in favor of new <code class="docutils literal"><span class="pre">.text</span></code> attribute
(the old names will be removed in 1.3 or even later).</li>
<li>Make <code class="docutils literal"><span class="pre">Response.write</span></code> much more efficient (<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/18">issue 18</a>).</li>
<li>Make sure copying responses does not reset Content-Length or Content-MD5 of the
original (and that of future copies).</li>
<li>Change <code class="docutils literal"><span class="pre">del</span> <span class="pre">res.body</span></code> semantics so that it doesn&#8217;t make the response invalid,
but only removes the response body.</li>
<li>Remove <code class="docutils literal"><span class="pre">Response._body</span></code> so the <code class="docutils literal"><span class="pre">_app_iter</span></code> is the only representation.</li>
</ul>
</div>
<div class="section" id="id29">
<h2>1.1b2<a class="headerlink" href="#id29" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Add detection for browser / user-agent disconnects. If the client disconnected
before sending the entire request body (POST / PUT), <code class="docutils literal"><span class="pre">req.POST</span></code>, <code class="docutils literal"><span class="pre">req.body</span></code>
and other related properties and methods will raise an exception.
Previously this caused the application get a truncated request with no indication that it
is incomplete.</li>
<li>Make <code class="docutils literal"><span class="pre">Response.body_file</span></code> settable. This is now valid:
<code class="docutils literal"><span class="pre">Response(body_file=open('foo.bin'),</span> <span class="pre">content_type=...)</span></code></li>
<li>Revert the restriction on req.body not being settable for GET and some
other requests. Such requests actually can have a body according to HTTP BIS
(see also <a class="reference external" href="https://bitbucket.org/ianb/webob/changeset/b3ef34c57936">commit message</a>)</li>
<li>Add support for file upload testing via <code class="docutils literal"><span class="pre">Request.blank(POST=..)</span></code>. Patch contributed by
Tim Perevezentsev. See also:
<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/15">ticket</a>,
<a class="reference external" href="https://bitbucket.org/ianb/webob/changeset/4ba9ab0c3f99">changeset</a>.</li>
<li>Deprecate <code class="docutils literal"><span class="pre">req.str_GET</span></code>, <code class="docutils literal"><span class="pre">str_POST</span></code>, <code class="docutils literal"><span class="pre">str_params</span></code> and <code class="docutils literal"><span class="pre">str_cookies</span></code> (warning).</li>
<li>Deprecate <code class="docutils literal"><span class="pre">req.decode_param_names</span></code> (warning).</li>
<li>Change <code class="docutils literal"><span class="pre">req.decode_param_names</span></code> default to <code class="docutils literal"><span class="pre">True</span></code>. This means that <code class="docutils literal"><span class="pre">.POST</span></code>, <code class="docutils literal"><span class="pre">.GET</span></code>,
<code class="docutils literal"><span class="pre">.params</span></code> and <code class="docutils literal"><span class="pre">.cookies</span></code> keys are now unicode. This is necessary for WebOb to behave
as close as possible on Python 2 and Python 3.</li>
</ul>
</div>
<div class="section" id="id30">
<h2>1.1b1<a class="headerlink" href="#id30" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>We have acquired the webob.org domain, docs are now hosted at <a class="reference external" href="http://docs.webob.org/">docs.webob.org</a></li>
<li>Make <code class="docutils literal"><span class="pre">accept.quality(..)</span></code> return best match quality, not first match quality.</li>
<li>Fix <code class="docutils literal"><span class="pre">Range.satisfiable(..)</span></code> edge cases.</li>
<li>Make sure <code class="docutils literal"><span class="pre">WSGIHTTPException</span></code> instances return the same headers for <code class="docutils literal"><span class="pre">HEAD</span></code>
and <code class="docutils literal"><span class="pre">GET</span></code> requests.</li>
<li>Drop Python 2.4 support</li>
<li>Deprecate <code class="docutils literal"><span class="pre">HTTPException.exception</span></code> (warning on use).</li>
<li>Deprecate <code class="docutils literal"><span class="pre">accept.first_match(..)</span></code> (warning on use).
Use <code class="docutils literal"><span class="pre">.best_match(..)</span></code> instead.</li>
<li>Complete deprecation of <code class="docutils literal"><span class="pre">req.[str_]{post|query}vars</span></code> properties
(exception on use).</li>
<li>Remove <code class="docutils literal"><span class="pre">FakeCGIBody.seek</span></code> hack (no longer necessary).</li>
</ul>
</div>
<div class="section" id="id31">
<h2>1.0.8<a class="headerlink" href="#id31" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Escape commas in cookie values (see also:
<a class="reference external" href="http://bugs.python.org/issue9824">stdlib Cookie bug</a>)</li>
<li>Change cookie serialization to more closely match how cookies usually
are serialized (unquoted expires, semicolon separators even between morsels)</li>
<li>Fix some rare cases in cookie parsing</li>
<li>Enhance the req.is_body_readable to always guess GET, HEAD, DELETE and TRACE
as unreadable and PUT and POST as readable
(<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/12">issue 12</a>)</li>
<li>Deny setting req.body or req.body_file to non-empty values for GET, HEAD and
other bodiless requests</li>
<li>Fix running nosetests with arguments on UNIX systems
(<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/11">issue 11</a>)</li>
</ul>
</div>
<div class="section" id="id32">
<h2>1.0.7<a class="headerlink" href="#id32" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix <code class="docutils literal"><span class="pre">Accept</span></code> header matching for items with zero-quality
(<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/10">issue 10</a>)</li>
<li>Hide password values in <code class="docutils literal"><span class="pre">MultiDict.__repr__</span></code></li>
</ul>
</div>
<div class="section" id="id33">
<h2>1.0.6<a class="headerlink" href="#id33" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Use <code class="docutils literal"><span class="pre">environ['wsgi.input'].read()</span></code> instead of <code class="docutils literal"><span class="pre">.read(-1)</span></code> because the former
is explicitly mentioned in PEP-3333 and CherryPy server does not support the latter.</li>
<li>Add new <code class="docutils literal"><span class="pre">environ['webob.is_body_readable']</span></code> flag which specifies if the
input stream is readable even if the <code class="docutils literal"><span class="pre">CONTENT_LENGTH</span></code> is not set.
WebOb now only ever reads the input stream if the content-length is known
or this flag is set.</li>
<li>The two changes above fix a hangup with CherryPy and wsgiref servers
(<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/6">issue 6</a>)</li>
<li><code class="docutils literal"><span class="pre">req.body_file</span></code> is now safer to read directly. For <code class="docutils literal"><span class="pre">GET</span></code> and other similar requests
it returns an empty <code class="docutils literal"><span class="pre">StringIO</span></code> or <code class="docutils literal"><span class="pre">BytesIO</span></code> object even if the server passed in
something else.</li>
<li>Setting <code class="docutils literal"><span class="pre">req.body_file</span></code> to a string now produces a PendingDeprecationWarning.
It will produce DeprecationWarning in 1.1 and raise an error in 1.2. Either
set <code class="docutils literal"><span class="pre">req.body_file</span></code> to a file-like object or set <code class="docutils literal"><span class="pre">req.body</span></code> to a string value.</li>
<li>Fix <code class="docutils literal"><span class="pre">.pop()</span></code> and <code class="docutils literal"><span class="pre">.setdefault(..)</span></code> methods of <code class="docutils literal"><span class="pre">req/resp.cache_control</span></code></li>
<li>Thanks to the participants of <a class="reference external" href="https://bitbucket.org/ianb/webob/changeset/7b7dc3ec6159">Pyramid sprint at the PyCon US 2011</a> WebOb now has
100% test coverage.</li>
</ul>
</div>
<div class="section" id="id34">
<h2>1.0.5<a class="headerlink" href="#id34" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Restore Python 2.4 compatibility.</li>
</ul>
</div>
<div class="section" id="id35">
<h2>1.0.4<a class="headerlink" href="#id35" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>The field names escaping bug semi-fixed in 1.0.3 and originally blamed on cgi module
was in fact a <code class="docutils literal"><span class="pre">webob.request._encode_multipart</span></code> bug (also in Google Chrome) and was
lurking in webob code for quite some time &#8211; 1.0.2 just made it trigger more often.
Now it is fixed properly.</li>
<li>Make sure that req.url and related properties do not unnecessarily escape some chars
(<code class="docutils literal"><span class="pre">:&#64;&amp;+$</span></code>) in the URI path (<a class="reference external" href="https://bitbucket.org/ianb/webob/issue/5">issue 5</a>)</li>
<li>Revert some changes from 1.0.3 that have broken backwards compatibility for some apps.
Getting <code class="docutils literal"><span class="pre">req.body_file</span></code> does not make input stream seekable, but there&#8217;s a new property
<code class="docutils literal"><span class="pre">req.body_file_seekable</span></code> that does.</li>
<li><code class="docutils literal"><span class="pre">Request.get_response</span></code> and <code class="docutils literal"><span class="pre">Request.call_application</span></code> seek the input body to start
before calling the app (if possible).</li>
<li>Accessing <code class="docutils literal"><span class="pre">req.body</span></code> &#8216;rewinds&#8217; the input stream back to pos 0 as well.</li>
<li>When accessing <code class="docutils literal"><span class="pre">req.POST</span></code> we now avoid making the body seekable as the input stream data
are preserved in <code class="docutils literal"><span class="pre">FakeCGIBody</span></code> anyway.</li>
<li>Add new method <code class="docutils literal"><span class="pre">Request.from_string</span></code>.</li>
<li>Make sure <code class="docutils literal"><span class="pre">Request.as_string()</span></code> uses CRLF to separate headers.</li>
<li>Improve parity between <code class="docutils literal"><span class="pre">Request.as_string()</span></code> and <code class="docutils literal"><span class="pre">.from_file</span></code>/<code class="docutils literal"><span class="pre">.from_string</span></code>
methods, so that the latter can parse output of the former and create a similar
request object which wasn&#8217;t always the case previously.</li>
</ul>
</div>
<div class="section" id="id36">
<h2>1.0.3<a class="headerlink" href="#id36" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Correct a caching issue introduced in WebOb 1.0.2 that was causing unnecessary reparsing
of POST requests.</li>
<li>Fix a bug regarding field names escaping for forms submitted as <code class="docutils literal"><span class="pre">multipart/form-data</span></code>.
For more infromation see <a class="reference external" href="https://bitbucket.org/ianb/webob/issue/2">the bug report and discussion</a> and 1.0.4 notes for further fix.</li>
<li>Add <code class="docutils literal"><span class="pre">req.http_version</span></code> attribute.</li>
</ul>
</div>
<div class="section" id="id37">
<h2>1.0.2<a class="headerlink" href="#id37" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Primary maintainer is now <a class="reference external" href="http://self.maluke.com/">Sergey Schetinin</a>.</li>
<li>Issue tracker moved from <a class="reference external" href="http://bit.ly/webob-tickets">Trac</a> to bitbucket&#8217;s <a class="reference external" href="https://bitbucket.org/ianb/webob/issues">issue
tracker</a></li>
<li>WebOb 1.0.1 changed the behavior of <code class="docutils literal"><span class="pre">MultiDict.update</span></code> to be more in line with
other dict-like objects. We now also issue a warning when we detect that the
client code seems to expect the old, extending semantics.</li>
<li>Make <code class="docutils literal"><span class="pre">Response.set_cookie(key,</span> <span class="pre">None)</span></code> set the &#8216;delete-cookie&#8217; (same as <code class="docutils literal"><span class="pre">.delete_cookie(key)</span></code>)</li>
<li>Make <code class="docutils literal"><span class="pre">req.upath_info</span></code> and <code class="docutils literal"><span class="pre">req.uscript_name</span></code> settable</li>
<li>Add :meth:<code class="docutils literal"><span class="pre">Request.as_string()</span></code> method</li>
<li>Add a <code class="docutils literal"><span class="pre">req.is_body_seekable</span></code> property</li>
<li>Support for the <code class="docutils literal"><span class="pre">deflate</span></code> method with <code class="docutils literal"><span class="pre">resp.decode_content()</span></code></li>
<li>To better conform to WSGI spec we no longer attempt to use seek on <code class="docutils literal"><span class="pre">wsgi.input</span></code> file
instead we assume it is not seekable unless <code class="docutils literal"><span class="pre">env['webob.is_body_seekable']</span></code> is set.
When making the body seekable we set that flag.</li>
<li>A call to <code class="docutils literal"><span class="pre">req.make_body_seekable()</span></code> now guarantees that the body is seekable, is at 0 position
and that a correct <code class="docutils literal"><span class="pre">req.content_length</span></code> is present.</li>
<li><code class="docutils literal"><span class="pre">req.body_file</span></code> is always seekable. To access <code class="docutils literal"><span class="pre">env['wsgi.input']</span></code> without any processing,
use <code class="docutils literal"><span class="pre">req.body_file_raw</span></code>. (Partially reverted in 1.0.4)</li>
<li>Fix responses to HEAD requests with Range.</li>
<li>Fix <code class="docutils literal"><span class="pre">del</span> <span class="pre">resp.content_type</span></code>, <code class="docutils literal"><span class="pre">del</span> <span class="pre">req.body</span></code>, <code class="docutils literal"><span class="pre">del</span> <span class="pre">req.cache_control</span></code></li>
<li>Fix <code class="docutils literal"><span class="pre">resp.merge_cookies()</span></code> when called with an argument that is not a Response instance.</li>
<li>Fix <code class="docutils literal"><span class="pre">resp.content_body</span> <span class="pre">=</span> <span class="pre">None</span></code> (was removing Cache-Control instead)</li>
<li>Fix <code class="docutils literal"><span class="pre">req.body_file</span> <span class="pre">=</span> <span class="pre">f</span></code> setting <code class="docutils literal"><span class="pre">CONTENT_LENGTH</span></code> to <code class="docutils literal"><span class="pre">-1</span></code> (now removes from environ)</li>
<li>Fix: make sure req.copy() leaves the original with seekable body</li>
<li>Fix handling of WSGI environs with missing <code class="docutils literal"><span class="pre">SCRIPT_NAME</span></code></li>
<li>A lot of tests were added by Mariano Mara and Danny Navarro.</li>
</ul>
</div>
<div class="section" id="id38">
<h2>1.0.1<a class="headerlink" href="#id38" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>As WebOb requires Python 2.4 or later, drop some compatibility modules
and update the code to use the decorator syntax.</li>
<li>Implement optional on-the-fly response compression (<code class="docutils literal"><span class="pre">resp.encode_content(lazy=True)</span></code>)</li>
<li>Drop <code class="docutils literal"><span class="pre">util.safezip</span></code> module and make <code class="docutils literal"><span class="pre">util</span></code> a module instead of a subpackage.
Merge <code class="docutils literal"><span class="pre">statusreasons</span></code> into it.</li>
<li>Instead of using stdlib <code class="docutils literal"><span class="pre">Cookie</span></code> with monkeypatching, add a derived
but thoroughly rewritten, cleaner, safer and faster <code class="docutils literal"><span class="pre">webob.cookies</span></code> module.</li>
<li>Fix: <code class="docutils literal"><span class="pre">Response.merge_cookies</span></code> now copies the headers before modification instead of
doing it in-place.</li>
<li>Fix: setting request header attribute to <code class="docutils literal"><span class="pre">None</span></code> deletes that header.
(Bug only affected the 1.0 release).</li>
<li>Use <code class="docutils literal"><span class="pre">io.BytesIO</span></code> for the request body file on Python 2.7 and newer.</li>
<li>If a UnicodeMultiDict was used as the <code class="docutils literal"><span class="pre">multi</span></code> argument of another
UnicodeMultiDict, and a <code class="docutils literal"><span class="pre">cgi.FieldStorage</span></code> with a <code class="docutils literal"><span class="pre">filename</span></code>
with high-order characters was present in the underlying
UnicodeMultiDict, a <code class="docutils literal"><span class="pre">UnicodeEncodeError</span></code> would be raised when any
helper method caused the <code class="docutils literal"><span class="pre">_decode_value</span></code> method to be called,
because the method would try to decode an already decoded string.</li>
<li>Fix tests to pass under Python 2.4.</li>
<li>Add descriptive docstrings to each exception in <code class="docutils literal"><span class="pre">webob.exc</span></code>.</li>
<li>Change the behaviour of <code class="docutils literal"><span class="pre">MultiDict.update</span></code> to overwrite existing header
values instead of adding new headers. The extending semantics are now available
via the <code class="docutils literal"><span class="pre">extend</span></code> method.</li>
<li>Fix a bug in <code class="docutils literal"><span class="pre">webob.exc.WSGIHTTPException.__init__</span></code>.  If a list of
<code class="docutils literal"><span class="pre">headers</span></code> was passed as a sequence which contained duplicate keys (for
example, multiple <code class="docutils literal"><span class="pre">Set-Cookie</span></code> headers), all but one of those headers
would be lost, because the list was effectively flattened into a dictionary
as the result of calling <code class="docutils literal"><span class="pre">self.headers.update</span></code>.  Fixed via calling
<code class="docutils literal"><span class="pre">self.headers.extend</span></code> instead.</li>
</ul>
</div>
<div class="section" id="id39">
<h2>1.0<a class="headerlink" href="#id39" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>1.0, yay!</li>
<li>Pull in werkzeug Cookie fix for malformed cookie bug.</li>
<li>Implement <code class="xref py py-meth docutils literal"><span class="pre">Request.from_file()</span></code> and
<code class="xref py py-meth docutils literal"><span class="pre">Response.from_file()</span></code> which are kind of the inversion of
<code class="docutils literal"><span class="pre">str(req)</span></code> and <code class="docutils literal"><span class="pre">str(resp)</span></code></li>
<li>Add optional <code class="docutils literal"><span class="pre">pattern</span></code> argument to <code class="xref py py-meth docutils literal"><span class="pre">Request.path_info_pop()</span></code> that requires
the <code class="docutils literal"><span class="pre">path_info</span></code> segment to match the passed regexp to get popped and returned.</li>
<li>Rewrite most of descriptor implementations for speed.</li>
<li>Reorder descriptor declarations to group them by their semantics.</li>
<li>Move code around so that there are fewer compat modules.</li>
<li>Change :meth:<code class="docutils literal"><span class="pre">HTTPError.__str__</span></code> to better conform to PEP 352.</li>
<li>Make <code class="xref py py-attr docutils literal"><span class="pre">Request.cache_control</span></code> a view on the headers.</li>
<li>Correct Accept-Language and Accept-Charset matching to fully conform to the HTTP spec.</li>
<li>Expose parts of <code class="xref py py-meth docutils literal"><span class="pre">Request.blank()</span></code> as <code class="xref py py-func docutils literal"><span class="pre">environ_from_url()</span></code>
and <code class="xref py py-func docutils literal"><span class="pre">environ_add_POST()</span></code></li>
<li>Fix Authorization header parsing for some corner cases.</li>
<li>Fix an error generated if the user-agent sends a &#8216;Content_Length&#8217; header
(note the underscore).</li>
<li>Kill <code class="xref py py-attr docutils literal"><span class="pre">Request.default_charset</span></code>. Request charset defaults to UTF-8.
This ensures that all values in <code class="docutils literal"><span class="pre">req.GET</span></code>, <code class="docutils literal"><span class="pre">req.POST</span></code> and <code class="docutils literal"><span class="pre">req.params</span></code>
are always unicode.</li>
<li>Fix the <code class="docutils literal"><span class="pre">headerlist</span></code> and <code class="docutils literal"><span class="pre">content_type</span></code> constructor arguments priorities
for <code class="xref py py-class docutils literal"><span class="pre">HTTPError</span></code> and subclasses.</li>
<li>Add support for weak etags to conditional Response objects.</li>
<li>Fix locale-dependence for some cookie dates strings.</li>
<li>Improve overall test coverage.</li>
<li>Rename class <code class="docutils literal"><span class="pre">webob.datastruct.EnvironHeaders</span></code> to <code class="docutils literal"><span class="pre">webob.headers.EnvironHeaders</span></code></li>
<li>Rename class <code class="docutils literal"><span class="pre">webob.headerdict.HeaderDict</span></code> to <code class="docutils literal"><span class="pre">webob.headers.ResponseHeaders</span></code></li>
<li>Rename class <code class="docutils literal"><span class="pre">webob.updatedict.UpdateDict</span></code> to <code class="docutils literal"><span class="pre">webob.cachecontrol.UpdateDict</span></code></li>
</ul>
</div>
<div class="section" id="id40">
<h2>0.9.8<a class="headerlink" href="#id40" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix issue with WSGIHTTPException inadvertently generating unicode body
and failing to encode it</li>
<li>WWW-Authenticate response header is accessible as
<code class="docutils literal"><span class="pre">response.www_authenticate</span></code></li>
<li><code class="docutils literal"><span class="pre">response.www_authenticate</span></code> and <code class="docutils literal"><span class="pre">request.authorization</span></code> hold None
or tuple <code class="docutils literal"><span class="pre">(auth_method,</span> <span class="pre">params)</span></code> where <code class="docutils literal"><span class="pre">params</span></code> is a dictionary
(or a string when <code class="docutils literal"><span class="pre">auth_method</span></code> is not one of known auth schemes
and for Authenticate: Basic ...)</li>
<li>Don&#8217;t share response headers when getting a response like <code class="docutils literal"><span class="pre">resp</span> <span class="pre">=</span>
<span class="pre">req.get_response(some_app)</span></code>; this can avoid some funny errors with
modifying headers and reusing Response objects.</li>
<li>Add <cite>overwrite</cite> argument to <code class="xref py py-meth docutils literal"><span class="pre">Response.set_cookie()</span></code> that make the
new value overwrite the previously set. <cite>False</cite> by default.</li>
<li>Add <cite>strict</cite> argument to <code class="xref py py-meth docutils literal"><span class="pre">Response.unset_cookie()</span></code> that controls
if an exception should be raised in case there are no cookies to unset.
<cite>True</cite> by default.</li>
<li>Fix <code class="docutils literal"><span class="pre">req.GET.copy()</span></code></li>
<li>Make sure that 304 Not Modified responses generated by
<code class="xref py py-meth docutils literal"><span class="pre">Response.conditional_response_app()</span></code> exclude Content-{Length/Type}
headers</li>
<li>Fix <code class="docutils literal"><span class="pre">Response.copy()</span></code> not being an independent copy</li>
<li>When the requested range is not satisfiable, return a 416 error
(was returning entire body)</li>
<li>Truncate response for range requests that go beyond the end of body
(was treating as invalid).</li>
</ul>
</div>
<div class="section" id="id41">
<h2>0.9.7.1<a class="headerlink" href="#id41" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix an import problem with Pylons</li>
</ul>
</div>
<div class="section" id="id42">
<h2>0.9.7<a class="headerlink" href="#id42" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Moved repository from svn location to
<a class="reference external" href="http://bitbucket.org/ianb/webob/">http://bitbucket.org/ianb/webob/</a></li>
<li>Arguments to <code class="xref py py-meth docutils literal"><span class="pre">Accept.best_match()</span></code> must be specific types,
not wildcards. The server should know a list of specic types it can
offer and use <code class="docutils literal"><span class="pre">best_match</span></code> to select a specific one.</li>
<li>With <code class="docutils literal"><span class="pre">req.accept.best_match([types])</span></code> prefer the first type in the
list (previously it preferred later types).</li>
<li>Also, make sure that if the user-agent accepts multiple types and
there are multiple matches to the types that the application offers,
<code class="docutils literal"><span class="pre">req.accept.best_match([..])</span></code> returns the most specific match.
So if the server can satisfy either <code class="docutils literal"><span class="pre">image/*</span></code> or <code class="docutils literal"><span class="pre">text/plain</span></code>
types, the latter will be picked independent from the order the accepted
or offered types are listed (given they have the same quality rating).</li>
<li>Fix Range, Content-Range and AppIter support all of which were broken
in many ways, incorrectly parsing ranges, reporting incorrect
content-ranges, failing to generate the correct body to satisfy the range
from <code class="docutils literal"><span class="pre">app_iter</span></code> etc.</li>
<li>Fix assumption that presense of a <code class="docutils literal"><span class="pre">seek</span></code> method means that the stream
is seekable.</li>
<li>Add <code class="docutils literal"><span class="pre">ubody</span></code> alias for <code class="docutils literal"><span class="pre">Response.unicode_body</span></code></li>
<li>Add Unicode versions of <code class="docutils literal"><span class="pre">Request.script_name</span></code> and <code class="docutils literal"><span class="pre">path_info</span></code>:
<code class="docutils literal"><span class="pre">uscript_name</span></code> and <code class="docutils literal"><span class="pre">upath_info</span></code>.</li>
<li>Split __init__.py into four modules: request, response, descriptors and
datetime_utils.</li>
<li>Fix <code class="docutils literal"><span class="pre">Response.body</span></code> access resetting Content-Length to zero
for HEAD responses.</li>
<li>Support passing Unicode bodies to <code class="xref py py-class docutils literal"><span class="pre">WSGIHTTPException</span></code>
constructors.</li>
<li>Make <code class="docutils literal"><span class="pre">bool(req.accept)</span></code> return <code class="docutils literal"><span class="pre">False</span></code> for requests with missing
Accept header.</li>
<li>Add HTTP version to <code class="xref py py-meth docutils literal"><span class="pre">Request.__str__()</span></code> output.</li>
<li>Resolve deprecation warnings for parse_qsl on Python 2.6 and newer.</li>
<li>Fix <code class="xref py py-meth docutils literal"><span class="pre">Response.md5_etag()</span></code> setting Content-MD5 in incorrect
format.</li>
<li>Add <code class="docutils literal"><span class="pre">Request.authorization</span></code> property for Authorization header.</li>
<li>Make sure ETag value is always quoted (required by RFC)</li>
<li>Moved most <code class="docutils literal"><span class="pre">Request</span></code> behavior into a new class named
<code class="docutils literal"><span class="pre">BaseRequest</span></code>.  The <code class="docutils literal"><span class="pre">Request</span></code> class is now a superclass for
<code class="docutils literal"><span class="pre">BaseRequest</span></code> and a simple mixin which manages
<code class="docutils literal"><span class="pre">environ['webob.adhoc_attrs']</span></code> when <code class="docutils literal"><span class="pre">__setitem__</span></code>,
<code class="docutils literal"><span class="pre">__delitem__</span></code> and <code class="docutils literal"><span class="pre">__getitem__</span></code> are called.  This allows
framework developers who do not want the
<code class="docutils literal"><span class="pre">environ['webob.adhoc_attrs']</span></code> mutation behavior from
<code class="docutils literal"><span class="pre">__setattr__</span></code>.  (chrism)</li>
<li>Added response attribute <code class="docutils literal"><span class="pre">response.content_disposition</span></code> for its
associated header.</li>
<li>Changed how <code class="docutils literal"><span class="pre">charset</span></code> is determined on <code class="xref py py-class docutils literal"><span class="pre">webob.Request</span></code>
objects.  Now the <code class="docutils literal"><span class="pre">charset</span></code> parameter is read on the Content-Type
header, if it is present.  Otherwise a <code class="docutils literal"><span class="pre">default_charset</span></code> parameter
is read, or the <code class="docutils literal"><span class="pre">charset</span></code> argument to the Request constructor.
This is more similar to how <code class="xref py py-class docutils literal"><span class="pre">webob.Response</span></code> handles the
charset.</li>
<li>Made the case of the Content-Type header consistent (note: this
might break some doctests).</li>
<li>Make <code class="docutils literal"><span class="pre">req.GET</span></code> settable, such that <code class="docutils literal"><span class="pre">req.environ['QUERY_STRING']</span></code>
is updated.</li>
<li>Fix problem with <code class="docutils literal"><span class="pre">req.POST</span></code> causing a re-parse of the body when
you instantiate multiple <code class="docutils literal"><span class="pre">Request</span></code> objects over the same environ
(e.g., when using middleware that looks at <code class="docutils literal"><span class="pre">req.POST</span></code>).</li>
<li>Recreate the request body properly when a <code class="docutils literal"><span class="pre">POST</span></code> includes file
uploads.</li>
<li>When <code class="docutils literal"><span class="pre">req.POST</span></code> is updated, the generated body will include the
new values.</li>
<li>Added a <code class="docutils literal"><span class="pre">POST</span></code> parameter to <code class="xref py py-meth docutils literal"><span class="pre">webob.Request.blank()</span></code>; when
given this will create a request body for the POST parameters (list
of two-tuples or dictionary-like object).  Note: this does not
handle unicode or file uploads.</li>
<li>Added method <code class="xref py py-meth docutils literal"><span class="pre">webob.Response.merge_cookies()</span></code>, which takes the
<code class="docutils literal"><span class="pre">Set-Cookie</span></code> headers from a Response, and merges them with another
response or WSGI application.  (This is useful for flash messages.)</li>
<li>Fix a problem with creating exceptions like
<code class="docutils literal"><span class="pre">webob.exc.HTTPNotFound(body='&lt;notfound/&gt;',</span>
<span class="pre">content_type='application/xml')</span></code> (i.e., non-HTML exceptions).</li>
<li>When a Location header is not absolute in a Response, it will be
made absolute when the Response is called as a WSGI application.
This makes the response less bound to a specific request.</li>
<li>Added <a class="reference internal" href="api/dec.html#module-webob.dec" title="webob.dec"><code class="xref py py-mod docutils literal"><span class="pre">webob.dec</span></code></a>, a decorator for making WSGI applications
from functions with the signature <code class="docutils literal"><span class="pre">resp</span> <span class="pre">=</span> <span class="pre">app(req)</span></code>.</li>
</ul>
</div>
<div class="section" id="id43">
<h2>0.9.6.1<a class="headerlink" href="#id43" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fixed <code class="xref py py-meth docutils literal"><span class="pre">Response.__init__()</span></code>, which for some content types would
raise an exception.</li>
<li>The <code class="docutils literal"><span class="pre">req.body</span></code> property will not recreate a StringIO object
unnecessarily when rereading the body.</li>
</ul>
</div>
<div class="section" id="id44">
<h2>0.9.6<a class="headerlink" href="#id44" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Removed <cite>environ_getter</cite> from <code class="xref py py-class docutils literal"><span class="pre">webob.Request</span></code>.  This
largely-unused option allowed a Request object to be instantiated
with a dynamic underlying environ.  Since it wasn&#8217;t used much, and
might have been ill-advised from the beginning, and affected
performance, it has been removed (from Chris McDonough).</li>
<li>Speed ups for <code class="xref py py-meth docutils literal"><span class="pre">webob.Response.__init__()</span></code> and
<code class="xref py py-meth docutils literal"><span class="pre">webob.Request.__init__()</span></code></li>
<li>Fix defaulting of <code class="docutils literal"><span class="pre">CONTENT_TYPE</span></code> instead of <code class="docutils literal"><span class="pre">CONTENT_LENGTH</span></code> to
0 in <code class="docutils literal"><span class="pre">Request.str_POST</span></code>.</li>
<li>Added <code class="xref py py-meth docutils literal"><span class="pre">webob.Response.copy()</span></code></li>
</ul>
</div>
<div class="section" id="id45">
<h2>0.9.5<a class="headerlink" href="#id45" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Fix <code class="docutils literal"><span class="pre">Request.blank('/').copy()</span></code> raising an exception.</li>
<li>Fix a potential memory leak with HEAD requests and 304 responses.</li>
<li>Make <a class="reference internal" href="api/webob.html#webob.html_escape" title="webob.html_escape"><code class="xref py py-func docutils literal"><span class="pre">webob.html_escape()</span></code></a> respect the <code class="docutils literal"><span class="pre">.__html__()</span></code> magic
method, which allows you to use HTML in
<a class="reference internal" href="api/exceptions.html#webob.exc.HTTPException" title="webob.exc.HTTPException"><code class="xref py py-class docutils literal"><span class="pre">webob.exc.HTTPException</span></code></a> instances.</li>
<li>Handle unicode values for <code class="docutils literal"><span class="pre">resp.location</span></code>.</li>
<li>Allow arbitrary keyword arguments to <code class="docutils literal"><span class="pre">exc.HTTP*</span></code> (the same
keywords you can send to <code class="xref py py-class docutils literal"><span class="pre">webob.Response</span></code>).</li>
<li>Allow setting <code class="xref py py-meth docutils literal"><span class="pre">webob.Response.cache_expires()</span></code> (usually it is
called as a method).  This is primarily to allow
<code class="docutils literal"><span class="pre">Response(cache_expires=True)</span></code>.</li>
</ul>
</div>
<div class="section" id="id46">
<h2>0.9.4<a class="headerlink" href="#id46" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Quiet Python 2.6 deprecation warnings.</li>
<li>Added an attribute <code class="docutils literal"><span class="pre">unicode_errors</span></code> to <code class="xref py py-class docutils literal"><span class="pre">webob.Response</span></code> &#8211;
if set to something like <code class="docutils literal"><span class="pre">unicode_errors='replace'</span></code> it will decode
<code class="docutils literal"><span class="pre">resp.body</span></code> appropriately.  The default is <code class="docutils literal"><span class="pre">strict</span></code> (which was
the former un-overridable behavior).</li>
</ul>
</div>
<div class="section" id="id47">
<h2>0.9.3<a class="headerlink" href="#id47" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Make sure that if changing the body the Content-MD5 header is
removed. (Otherwise a lot of middleware would accidentally
corrupt responses).</li>
<li>Fixed <code class="docutils literal"><span class="pre">Response.encode_content('identity')</span></code> case (was a no-op even
for encoded bodies).</li>
<li>Fixed <code class="xref py py-meth docutils literal"><span class="pre">Request.remove_conditional_headers()</span></code> that was removing
If-Match header instead of If-None-Match.</li>
<li>Fixed <code class="docutils literal"><span class="pre">resp.set_cookie(max_age=timedelta(...))</span></code></li>
<li><code class="docutils literal"><span class="pre">request.POST</span></code> now supports PUT requests with the appropriate
Content-Type.</li>
</ul>
</div>
<div class="section" id="id48">
<h2>0.9.2<a class="headerlink" href="#id48" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Add more arguments to <code class="xref py py-meth docutils literal"><span class="pre">Request.remove_conditional_headers()</span></code>
for more fine-grained control: <cite>remove_encoding</cite>, <cite>remove_range</cite>,
<cite>remove_match</cite>, <cite>remove_modified</cite>. All of them are <cite>True</cite> by default.</li>
<li>Add an <cite>set_content_md5</cite> argument to <code class="xref py py-meth docutils literal"><span class="pre">Response.md5_etag()</span></code>
that calculates and sets Content-MD5 reponse header from current
body.</li>
<li>Change formatting of cookie expires, to use the more traditional
format <code class="docutils literal"><span class="pre">Wed,</span> <span class="pre">5-May-2001</span> <span class="pre">15:34:10</span> <span class="pre">GMT</span></code> (dashes instead of spaces).
Browsers should deal with either format, but some other code expects
dashes.</li>
<li>Added in <code class="docutils literal"><span class="pre">sorted</span></code> function for backward compatibility with Python
2.3.</li>
<li>Allow keyword arguments to <code class="xref py py-class docutils literal"><span class="pre">webob.Request</span></code>, which assign
attributes (possibly overwriting values in the environment).</li>
<li>Added methods <code class="xref py py-meth docutils literal"><span class="pre">webob.Request.make_body_seekable()</span></code> and
<code class="xref py py-meth docutils literal"><span class="pre">webob.Request.copy_body()</span></code>, which make it easier to share a
request body among different consuming applications, doing something
like <cite>req.make_body_seekable(); req.body_file.seek(0)</cite></li>
</ul>
</div>
<div class="section" id="id49">
<h2>0.9.1<a class="headerlink" href="#id49" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">request.params.copy()</span></code> now returns a writable MultiDict (before
it returned an unwritable object).</li>
<li>There were several things broken with <code class="docutils literal"><span class="pre">UnicodeMultiDict</span></code> when
<code class="docutils literal"><span class="pre">decode_param_names</span></code> is turned on (when the dictionary keys are
unicode).</li>
<li>You can pass keyword arguments to <code class="docutils literal"><span class="pre">Request.blank()</span></code> that will be
used to construct <code class="docutils literal"><span class="pre">Request</span></code> (e.g., <code class="docutils literal"><span class="pre">Request.blank('/',</span>
<span class="pre">decode_param_names=True)</span></code>).</li>
<li>If you set headers like <code class="docutils literal"><span class="pre">response.etag</span></code> to a unicode value, they
will be encoded as ISO-8859-1 (however, they will remain encoded,
and <code class="docutils literal"><span class="pre">response.etag</span></code> will not be a unicode value).</li>
<li>When parsing, interpret times with no timezone as UTC (previously
they would be interpreted as local time).</li>
<li>Set the Expires property on cookies when using
<code class="docutils literal"><span class="pre">response.set_cookie()</span></code>.  This is inherited from <code class="docutils literal"><span class="pre">max_age</span></code>.</li>
<li>Support Unicode cookie values</li>
</ul>
</div>
<div class="section" id="id50">
<h2>0.9<a class="headerlink" href="#id50" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Added <code class="docutils literal"><span class="pre">req.urlarg</span></code>, which represents positional arguments in
<code class="docutils literal"><span class="pre">environ['wsgiorg.routing_args']</span></code>.</li>
<li>For Python 2.4, added attribute get/set proxies on exception objects
from, for example, <code class="docutils literal"><span class="pre">webob.exc.HTTPNotFound().exception</span></code>, so that
they act more like normal response objects (despite not being
new-style classes or <code class="docutils literal"><span class="pre">webob.Response</span></code> objects).  In Python 2.5 the
exceptions are <code class="docutils literal"><span class="pre">webob.Response</span></code> objects.</li>
</ul>
<div class="section" id="backward-incompatible-changes">
<h3>Backward Incompatible Changes<a class="headerlink" href="#backward-incompatible-changes" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>The <code class="docutils literal"><span class="pre">Response</span></code> constructor has changed: it is now <code class="docutils literal"><span class="pre">Response([body],</span>
<span class="pre">[status],</span> <span class="pre">...)</span></code> (before it was <code class="docutils literal"><span class="pre">Response([status],</span> <span class="pre">[body],</span> <span class="pre">...)</span></code>).
Body may be str or unicode.</li>
<li>The <code class="docutils literal"><span class="pre">Response</span></code> class defaults to <code class="docutils literal"><span class="pre">text/html</span></code> for the
Content-Type, and <code class="docutils literal"><span class="pre">utf8</span></code> for the charset (charset is only set on
<code class="docutils literal"><span class="pre">text/*</span></code> and <code class="docutils literal"><span class="pre">application/*+xml</span></code> responses).</li>
</ul>
</div>
<div class="section" id="bugfixes-and-small-changes">
<h3>Bugfixes and Small Changes<a class="headerlink" href="#bugfixes-and-small-changes" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li>Use <code class="docutils literal"><span class="pre">BaseCookie</span></code> instead of <code class="docutils literal"><span class="pre">SimpleCookie</span></code> for parsing cookies.</li>
<li>Added <code class="docutils literal"><span class="pre">resp.write(text)</span></code> method, which is equivalent to
<code class="docutils literal"><span class="pre">resp.body</span> <span class="pre">+=</span> <span class="pre">text</span></code> or <code class="docutils literal"><span class="pre">resp.unicode_body</span> <span class="pre">+=</span> <span class="pre">text</span></code>, depending on
the type of <code class="docutils literal"><span class="pre">text</span></code>.</li>
<li>The <code class="docutils literal"><span class="pre">decode_param_names</span></code> argument (used like
<code class="docutils literal"><span class="pre">Request(decode_param_names=True)</span></code>) was being ignored.</li>
<li>Unicode decoding of file uploads and file upload filenames were
causing errors when decoding non-file-upload fields (both fixes from
Ryan Barrett).</li>
</ul>
</div>
</div>
<div class="section" id="id51">
<h2>0.8.5<a class="headerlink" href="#id51" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Added response methods <code class="docutils literal"><span class="pre">resp.encode_content()</span></code> and
<code class="docutils literal"><span class="pre">resp.decode_content()</span></code> to gzip or ungzip content.</li>
<li><code class="docutils literal"><span class="pre">Response(status=404)</span></code> now works (before you would have to use
<code class="docutils literal"><span class="pre">status=&quot;404</span> <span class="pre">Not</span> <span class="pre">Found&quot;</span></code>).</li>
<li>Bugfix (typo) with reusing POST body.</li>
<li>Added <code class="docutils literal"><span class="pre">226</span> <span class="pre">IM</span> <span class="pre">Used</span></code> response status.</li>
<li>Backport of <code class="docutils literal"><span class="pre">string.Template</span></code> included for Python 2.3
compatibility.</li>
</ul>
</div>
<div class="section" id="id52">
<h2>0.8.4<a class="headerlink" href="#id52" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">__setattr__</span></code> would keep <code class="docutils literal"><span class="pre">Request</span></code> subclasses from having
properly settable environ proxies (like <code class="docutils literal"><span class="pre">req.path_info</span></code>).</li>
</ul>
</div>
<div class="section" id="id53">
<h2>0.8.3<a class="headerlink" href="#id53" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">request.POST</span></code> was giving FieldStorage objects for <em>every</em>
attribute, not just file uploads.  This is fixed now.</li>
<li>Added request attributes <code class="docutils literal"><span class="pre">req.server_name</span></code> and <code class="docutils literal"><span class="pre">req.server_port</span></code>
for the environ keys <code class="docutils literal"><span class="pre">SERVER_NAME</span></code> and <code class="docutils literal"><span class="pre">SERVER_PORT</span></code>.</li>
<li>Avoid exceptions in <code class="docutils literal"><span class="pre">req.content_length</span></code>, even if
<code class="docutils literal"><span class="pre">environ['CONTENT_LENGTH']</span></code> is somehow invalid.</li>
</ul>
</div>
<div class="section" id="id54">
<h2>0.8.2<a class="headerlink" href="#id54" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Python 2.3 compatibility: backport of <code class="docutils literal"><span class="pre">reversed(seq)</span></code></li>
<li>Made separate <code class="docutils literal"><span class="pre">.exception</span></code> attribute on <code class="docutils literal"><span class="pre">webob.exc</span></code> objects,
since new-style classes can&#8217;t be raised as exceptions.</li>
<li>Deprecate <code class="docutils literal"><span class="pre">req.postvars</span></code> and <code class="docutils literal"><span class="pre">req.queryvars</span></code>, instead using the
sole names <code class="docutils literal"><span class="pre">req.GET</span></code> and <code class="docutils literal"><span class="pre">req.POST</span></code> (also <code class="docutils literal"><span class="pre">req.str_GET</span></code> and
<code class="docutils literal"><span class="pre">req.str_POST</span></code>).  The old names give a warning; will give an error
in next release, and be completely gone in the following release.</li>
<li><code class="docutils literal"><span class="pre">req.user_agent</span></code> is now just a simple string (parsing the
User-Agent header was just too volatile, and required too much
knowledge about current browsers).  Similarly,
<code class="docutils literal"><span class="pre">req.referer_search_query()</span></code> is gone.</li>
<li>Added parameters <code class="docutils literal"><span class="pre">version</span></code> and <code class="docutils literal"><span class="pre">comment</span></code> to
<code class="docutils literal"><span class="pre">Response.set_cookie()</span></code>, per William Dode&#8217;s suggestion.</li>
<li>Was accidentally consuming file uploads, instead of putting the
<code class="docutils literal"><span class="pre">FieldStorage</span></code> object directly in the parameters.</li>
</ul>
</div>
<div class="section" id="id55">
<h2>0.8.1<a class="headerlink" href="#id55" title="Permalink to this headline"></a></h2>
<ul class="simple">
<li>Added <code class="docutils literal"><span class="pre">res.set_cookie(...,</span> <span class="pre">httponly=True)</span></code> to set the <code class="docutils literal"><span class="pre">HttpOnly</span></code>
attribute on the cookie, which keeps Javascript from reading the
cookie.</li>
<li>Added some WebDAV-related responses to <code class="docutils literal"><span class="pre">webob.exc</span></code></li>
<li>Set default <code class="docutils literal"><span class="pre">Last-Modified</span></code> when using <code class="docutils literal"><span class="pre">response.cache_expire()</span></code>
(fixes issue with Opera)</li>
<li>Generally fix <code class="docutils literal"><span class="pre">.cache_control</span></code></li>
</ul>
</div>
<div class="section" id="id56">
<h2>0.8<a class="headerlink" href="#id56" title="Permalink to this headline"></a></h2>
<p>First release.  Nothing is new, or everything is new, depending on how
you think about it.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">WebOb Change History</a><ul>
<li><a class="reference internal" href="#id1">1.6.2 (2016-10-14)</a><ul>
<li><a class="reference internal" href="#bugfix">Bugfix</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id2">1.6.1 (2016-05-20)</a><ul>
<li><a class="reference internal" href="#id3">Bugfix</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id4">1.6.0 (2016-03-15)</a><ul>
<li><a class="reference internal" href="#compatibility">Compatibility</a></li>
<li><a class="reference internal" href="#id5">Bugfix</a></li>
<li><a class="reference internal" href="#features">Features</a></li>
<li><a class="reference internal" href="#security">Security</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id6">1.5.1 (2015-10-30)</a><ul>
<li><a class="reference internal" href="#bug-fixes">Bug Fixes</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id7">1.5.0 (2015-10-11)</a><ul>
<li><a class="reference internal" href="#id8">Bug Fixes</a></li>
<li><a class="reference internal" href="#id9">Features</a></li>
<li><a class="reference internal" href="#backwards-incompatibilities">Backwards Incompatibilities</a></li>
</ul>
</li>
<li><a class="reference internal" href="#a0-2015-07-25">1.5.0a0 (2015-07-25)</a><ul>
<li><a class="reference internal" href="#id10">Backwards Incompatibilities</a></li>
<li><a class="reference internal" href="#id11">Features</a></li>
<li><a class="reference internal" href="#id12">Bug Fixes</a></li>
<li><a class="reference internal" href="#documentation-changes">Documentation Changes</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id13">1.4 (2014-05-14)</a><ul>
<li><a class="reference internal" href="#id14">Features</a></li>
<li><a class="reference internal" href="#id15">Bug Fixes</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id16">1.3.1 (2013-12-13)</a><ul>
<li><a class="reference internal" href="#id17">Bug Fixes</a></li>
<li><a class="reference internal" href="#id18">Backwards Incompatibilities</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id19">1.3 (2013-12-10)</a><ul>
<li><a class="reference internal" href="#id20">Features</a></li>
<li><a class="reference internal" href="#id21">Bug Fixes</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id22">1.2.3</a></li>
<li><a class="reference internal" href="#id23">1.2.2</a></li>
<li><a class="reference internal" href="#id24">1.2.1</a></li>
<li><a class="reference internal" href="#id25">1.2</a></li>
<li><a class="reference internal" href="#rc1">1.2rc1</a></li>
<li><a class="reference internal" href="#b3">1.2b3</a></li>
<li><a class="reference internal" href="#b2">1.2b2</a></li>
<li><a class="reference internal" href="#b1">1.2b1</a></li>
<li><a class="reference internal" href="#a2">1.2a2</a></li>
<li><a class="reference internal" href="#a1">1.2a1</a></li>
<li><a class="reference internal" href="#id26">1.1.1</a></li>
<li><a class="reference internal" href="#id27">1.1</a></li>
<li><a class="reference internal" href="#id28">1.1rc1</a></li>
<li><a class="reference internal" href="#id29">1.1b2</a></li>
<li><a class="reference internal" href="#id30">1.1b1</a></li>
<li><a class="reference internal" href="#id31">1.0.8</a></li>
<li><a class="reference internal" href="#id32">1.0.7</a></li>
<li><a class="reference internal" href="#id33">1.0.6</a></li>
<li><a class="reference internal" href="#id34">1.0.5</a></li>
<li><a class="reference internal" href="#id35">1.0.4</a></li>
<li><a class="reference internal" href="#id36">1.0.3</a></li>
<li><a class="reference internal" href="#id37">1.0.2</a></li>
<li><a class="reference internal" href="#id38">1.0.1</a></li>
<li><a class="reference internal" href="#id39">1.0</a></li>
<li><a class="reference internal" href="#id40">0.9.8</a></li>
<li><a class="reference internal" href="#id41">0.9.7.1</a></li>
<li><a class="reference internal" href="#id42">0.9.7</a></li>
<li><a class="reference internal" href="#id43">0.9.6.1</a></li>
<li><a class="reference internal" href="#id44">0.9.6</a></li>
<li><a class="reference internal" href="#id45">0.9.5</a></li>
<li><a class="reference internal" href="#id46">0.9.4</a></li>
<li><a class="reference internal" href="#id47">0.9.3</a></li>
<li><a class="reference internal" href="#id48">0.9.2</a></li>
<li><a class="reference internal" href="#id49">0.9.1</a></li>
<li><a class="reference internal" href="#id50">0.9</a><ul>
<li><a class="reference internal" href="#backward-incompatible-changes">Backward Incompatible Changes</a></li>
<li><a class="reference internal" href="#bugfixes-and-small-changes">Bugfixes and Small Changes</a></li>
</ul>
</li>
<li><a class="reference internal" href="#id51">0.8.5</a></li>
<li><a class="reference internal" href="#id52">0.8.4</a></li>
<li><a class="reference internal" href="#id53">0.8.3</a></li>
<li><a class="reference internal" href="#id54">0.8.2</a></li>
<li><a class="reference internal" href="#id55">0.8.1</a></li>
<li><a class="reference internal" href="#id56">0.8</a></li>
</ul>
</li>
</ul>
<div class="relations">
<h3>Related Topics</h3>
<ul>
  <li><a href="index.html">Documentation overview</a><ul>
      <li>Previous: <a href="whatsnew-1.6.html" title="previous chapter">What&#8217;s New in WebOb 1.6</a></li>
  </ul></li>
</ul>
</div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="_sources/changes.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="footer">
      &copy;2017, Ian Bicking and contributors.
      
      |
      Powered by <a href="http://sphinx-doc.org/">Sphinx 1.4.9</a>
      &amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.8</a>
      
      |
      <a href="_sources/changes.txt"
          rel="nofollow">Page source</a>
    </div>

    

    
  </body>
</html>