Layer7 API Management

Expand all | Collapse all

how to add trailing spaces

  • 1.  how to add trailing spaces

    Posted 01-31-2017 11:21 PM

    how to add trailing spaces to a variable 



  • 2.  Re: how to add trailing spaces

    Posted 01-31-2017 11:23 PM

    For variable that has could have different length .....and the result should be of fixed length



  • 3.  Re: how to add trailing spaces

    Posted 02-01-2017 08:35 AM

    Hi gvmecija,

     

    Can you provide some more details on the use case and version of Gateway you are using?

    The variables should retain the trailing space and warn you to it's existence.

     

     

    If I Base64 encode the variable I can also see the space accounted for:

     

    (No trailing space) "test"   b64   dGVzdA== (One Trailing space) "test " b64   dGVzdCA=

     

    Regards,

    Joe