Skip to content

Commit

Permalink
Strip leading slash in vhost
Browse files Browse the repository at this point in the history
  • Loading branch information
subsetpark committed Apr 5, 2018
1 parent 0c4b25c commit 20da810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions stomp.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vim: set et nosta sw=4 ts=4 ft=nim :
# vim: set et nosta sw=4 ts=4 ft=nim :
#
# Copyright (c) 2016, Mahlon E. Smith <mahlon@martini.nu>
# All rights reserved.
Expand Down Expand Up @@ -51,7 +51,7 @@
##
## Protocol support
## ----------------
##
##
## Examples
## =========
##
Expand All @@ -68,7 +68,7 @@ import
uri

const
VERSION = "0.1.0" ## The current program version.
VERSION = "0.1.1" ## The current program version.
NULL = "\x00" ## The NULL character.
CR = "\r" ## The carriage return character.
CRLF = "\r\n" ## Carriage return + Line feed (EOL).
Expand Down Expand Up @@ -298,7 +298,7 @@ proc newStompClient*( s: Socket, uri: string ): StompClient =
result.username = result.uri.username
result.password = result.uri.password
result.host = result.uri.hostname
result.vhost = result.uri.path
result.vhost = result.uri.path.strip(chars = {'/'}, trailing = false)
result.timeout = 500
result.subscriptions = @[]
result.transactions = @[]
Expand Down Expand Up @@ -584,7 +584,7 @@ proc nack*( c: StompClient, id: string, transaction: string = nil ): void =
## on error:
##
## .. code-block:: nim
##
##
## stomp.subscribe( "/queue/test", "client-individual" )
## FIXME: attach procs
## stomp.wait_for_messages
Expand Down
2 changes: 1 addition & 1 deletion stomp.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.1.0"
version = "0.1.1"
author = "Mahlon E. Smith <mahlon@martini.nu>"
description = "A pure-nim implementation of the STOMP protocol for machine messaging."
license = "MIT"
Expand Down

0 comments on commit 20da810

Please sign in to comment.