mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-27 21:40:34 +02:00
web: Be less strict when parsing entity tags.
* module/web/http.scm (parse-entity-tag): Be less strict, accepting unquoted strings as well. * test-suite/tests/web-http.test ("response headers"): Add a test for etag parsing.
This commit is contained in:
parent
4137c224e2
commit
6d7c09c8a9
2 changed files with 11 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
;;;; web-uri.test --- URI library -*- mode: scheme; coding: utf-8; -*-
|
||||
;;;;
|
||||
;;;; Copyright (C) 2010, 2011, 2014 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 2010, 2011, 2014, 2016 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -343,6 +343,7 @@
|
|||
(pass-if-parse age "30" 30)
|
||||
(pass-if-parse etag "\"foo\"" '("foo" . #t))
|
||||
(pass-if-parse etag "W/\"foo\"" '("foo" . #f))
|
||||
(pass-if-parse etag "foo" '("foo" . #t))
|
||||
(pass-if-parse location "http://other-place"
|
||||
(build-uri 'http #:host "other-place"))
|
||||
(pass-if-parse location "#foo"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue