Permalink
Browse files

Updated h:negotiateContentType(..) function to handle + symbol in sub…

…type
  • Loading branch information...
1 parent 6b84434 commit 141b198b2462b601cb13dd67538eb72e8fe94a2c @ukcrpb6 ukcrpb6 committed May 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/helper.xqy
View
@@ -58,7 +58,7 @@ declare function h:negotiateContentType( $accept,
for $sat in $orderedAcceptTypes
let $match := (
for $sct in $supportedContentTypes
- where fn:matches( $sct, fn:replace( $sat, "\*", ".*" ) )
+ where fn:matches( $sct, fn:replace(fn:replace( $sat, "\*", ".*" ), "\+", "\\+" ) )
return $sct ) [1]
return $match, $defaultContentType ) [1] } ;

0 comments on commit 141b198

Please sign in to comment.