mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
upload_tests: Make size error check stricter
This commit is contained in:
parent
a4049d9418
commit
8e1a13b259
@ -195,7 +195,7 @@ check_size_error(IQErr, Size, NS) ->
|
|||||||
FileTooLarge = xmpp:get_subtag(Err, #upload_file_too_large{xmlns = NS}),
|
FileTooLarge = xmpp:get_subtag(Err, #upload_file_too_large{xmlns = NS}),
|
||||||
#stanza_error{reason = 'not-acceptable'} = Err,
|
#stanza_error{reason = 'not-acceptable'} = Err,
|
||||||
#upload_file_too_large{'max-file-size' = MaxSize} = FileTooLarge,
|
#upload_file_too_large{'max-file-size' = MaxSize} = FileTooLarge,
|
||||||
Size > MaxSize.
|
true = Size > MaxSize.
|
||||||
|
|
||||||
namespaces() ->
|
namespaces() ->
|
||||||
[?NS_HTTP_UPLOAD_0, ?NS_HTTP_UPLOAD, ?NS_HTTP_UPLOAD_OLD].
|
[?NS_HTTP_UPLOAD_0, ?NS_HTTP_UPLOAD, ?NS_HTTP_UPLOAD_OLD].
|
||||||
|
Loading…
Reference in New Issue
Block a user