From 3ff1ab6e1f3f5ff1ec5e2693acc26b527c14803e Mon Sep 17 00:00:00 2001 From: Tibo-lg Date: Mon, 22 Jun 2015 11:26:40 +0200 Subject: [PATCH] Update hoxt documentation to use List instead of Set for headers. --- documentation/extensions/hoxt.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/extensions/hoxt.md b/documentation/extensions/hoxt.md index 55bb17f3a..a1d79066a 100644 --- a/documentation/extensions/hoxt.md +++ b/documentation/extensions/hoxt.md @@ -73,11 +73,11 @@ HttpOverXmppReq req = new HttpOverXmppReq(HttpMethod.POST, "/mailbox"); req.setVersion("1.1"); // prepare headers -Set
set = new HashSet
(); -set.add(new Header("Host", "juliet.capulet.com")); -set.add(new Header("Content-Type", "application/x-www-form- urlencoded")); -set.add(new Header("Content-Length", Integer.toString(urlEncodedMessage.length()))); -req.setHeaders(new HeadersExtension(set)); +List
list = new ArrayList
(); +list.add(new Header("Host", "juliet.capulet.com")); +list.add(new Header("Content-Type", "application/x-www-form- urlencoded")); +list.add(new Header("Content-Length", Integer.toString(urlEncodedMessage.length()))); +req.setHeaders(new HeadersExtension(list)); // provide body or request (not mandatory, - empty body is used for GET) AbstractHttpOverXmpp.Text child = new AbstractHttpOverXmpp.Text(urlEncodedMessage);